LMongo\Eloquent\Relations\MorphOneOrMany::addConstraints PHP 메소드

addConstraints() 공개 메소드

Set the base constraints on the relation query.
public addConstraints ( ) : void
리턴 void
    public function addConstraints()
    {
        parent::addConstraints();
        $this->query->where($this->morphType, $this->morphClass);
    }