/** * Filter the query by a related \Tekstove\ApiBundle\Model\Lyric\LyricVote object * * @param \Tekstove\ApiBundle\Model\Lyric\LyricVote|ObjectCollection $lyricVote the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildUserQuery The current query, for fluid interface */ public function filterByLyricVote($lyricVote, $comparison = null) { if ($lyricVote instanceof \Tekstove\ApiBundle\Model\Lyric\LyricVote) { return $this->addUsingAlias(UserTableMap::COL_ID, $lyricVote->getUserId(), $comparison); } elseif ($lyricVote instanceof ObjectCollection) { return $this->useLyricVoteQuery()->filterByPrimaryKeys($lyricVote->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByLyricVote() only accepts arguments of type \\Tekstove\\ApiBundle\\Model\\Lyric\\LyricVote or Collection'); } }