src/Relations/HasAndBelongsToMany.php
public function getLinkQuery($specific = true)
    {
        $query = $this->getDB()->newSelect();
        $query->from($this->getTable());

        if ($specific) {
            $query = $this->populateQuerySpecific($query);
        }

        return $query;
    }
public function getLinkQuery($specific = true)
    {
        $query = $this->getDB()->newSelect();
        $query->from($this->getTable());

        if ($specific) {
            $query = $this->populateQuerySpecific($query);
        }

        return $query;
    }
public function getLinkQuery ( $ specific = true ) { $ query = $ this -> getDB ( ) -> newSelect ( ) ; $ query -> from ( $ this -> getTable ( ) ) ; if ( $ specific ) { $ query = $ this -> populateQuerySpecific ( $ query ) ; } return $ query ; }
Simple select query from the link table
@param bool $specific
@return SelectQuery
Simple select query from the link table