LMongo\Eloquent\Relations\MorphOneOrMany::addConstraints PHP Method

addConstraints() public method

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