Ejemplo n.º 1
0
 /**
  * @param LyricVote $lyricVote The LyricVote object to add.
  */
 protected function doAddLyricVote(LyricVote $lyricVote)
 {
     $this->collLyricVotes[] = $lyricVote;
     $lyricVote->setUser($this);
 }
Ejemplo n.º 2
0
 /**
  * Exclude object from result
  *
  * @param   ChildLyricVote $lyricVote Object to remove from the list of results
  *
  * @return $this|ChildLyricVoteQuery The current query, for fluid interface
  */
 public function prune($lyricVote = null)
 {
     if ($lyricVote) {
         $this->addUsingAlias(LyricVoteTableMap::COL_ID, $lyricVote->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Ejemplo n.º 3
0
 /**
  * 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');
     }
 }