Exemple #1
0
 /**
  * Filter the query by a related \Thelia\Model\ContentImage object
  *
  * @param \Thelia\Model\ContentImage|ObjectCollection $contentImage  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildContentQuery The current query, for fluid interface
  */
 public function filterByContentImage($contentImage, $comparison = null)
 {
     if ($contentImage instanceof \Thelia\Model\ContentImage) {
         return $this->addUsingAlias(ContentTableMap::ID, $contentImage->getContentId(), $comparison);
     } elseif ($contentImage instanceof ObjectCollection) {
         return $this->useContentImageQuery()->filterByPrimaryKeys($contentImage->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByContentImage() only accepts arguments of type \\Thelia\\Model\\ContentImage or Collection');
     }
 }