public function getViaIds($select = null)
    {
        return (new Query())
            ->from($this->viaTable)
            ->select(($select ? : array_values($this->relationAttribute)))
            ->where($this->condition)
            ;
    }