public function getViaIds($select = null)
    {
        return (new Query())
            ->from($this->viaTable)
            ->select(($select ? : array_values($this->relationAttribute)))
            ->where($this->condition)
            ;
    }
public function getViaIds($select = null)
    {
        return (new Query())
            ->from($this->viaTable)
            ->select(($select ? : array_values($this->relationAttribute)))
            ->where($this->condition)
            ;
    }
public function getViaIds ( $ select = null ) { return ( new Query ( ) ) -> from ( $ this -> viaTable ) -> select ( ( $ select ? : array_values ( $ this -> relationAttribute ) ) ) -> where ( $ this -> condition ) ; }
Gets relation table via unique data
@param null $select
@return Query
Gets relation table via unique data