LMongo\Eloquent\Model::setRelation PHP 메소드

setRelation() 공개 메소드

Set the specific relationship in the model.
public setRelation ( string $relation, mixed $value ) : Model
$relation string
$value mixed
리턴 Model
    public function setRelation($relation, $value)
    {
        $this->relations[$relation] = $value;
        return $this;
    }
Model