Beispiel #1
0
 /**
  * Filter the query by a related \Tekstove\ApiBundle\Model\Artist\ArtistLyric object
  *
  * @param \Tekstove\ApiBundle\Model\Artist\ArtistLyric|ObjectCollection $artistLyric the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildLyricQuery The current query, for fluid interface
  */
 public function filterByArtistLyric($artistLyric, $comparison = null)
 {
     if ($artistLyric instanceof \Tekstove\ApiBundle\Model\Artist\ArtistLyric) {
         return $this->addUsingAlias(LyricTableMap::COL_ID, $artistLyric->getLyricId(), $comparison);
     } elseif ($artistLyric instanceof ObjectCollection) {
         return $this->useArtistLyricQuery()->filterByPrimaryKeys($artistLyric->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByArtistLyric() only accepts arguments of type \\Tekstove\\ApiBundle\\Model\\Artist\\ArtistLyric or Collection');
     }
 }