public function getRelationQuery(Builder $query, Builder $parent, $columns = ['*'])
    {
        $query = parent::getRelationQuery($query, $parent, $columns);

        return $query->where($this->morphType, $this->morphClass);
    }
public function getRelationQuery(Builder $query, Builder $parent, $columns = ['*'])
    {
        $query = parent::getRelationQuery($query, $parent, $columns);

        return $query->where($this->morphType, $this->morphClass);
    }
public function getRelationQuery ( Builder $ query , Builder $ parent , $ columns = [ '*' ] ) { $ query = parent :: getRelationQuery ( $ query , $ parent , $ columns ) ; return $ query -> where ( $ this -> morphType , $ this -> morphClass ) ; }
Get the relationship query.

@param  \Globalis\PuppetSkilled\Database\Magic\Builder  $query
@param  \Globalis\PuppetSkilled\Database\Magic\Builder  $parent
@param  array|mixed  $columns
@return \Globalis\PuppetSkilled\Database\Magic\Builder
Get the relationship query .