Esempio n. 1
0
 /**
  * Filter the query by a related \Thelia\Model\ContentImageI18n object
  *
  * @param \Thelia\Model\ContentImageI18n|ObjectCollection $contentImageI18n  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildContentImageQuery The current query, for fluid interface
  */
 public function filterByContentImageI18n($contentImageI18n, $comparison = null)
 {
     if ($contentImageI18n instanceof \Thelia\Model\ContentImageI18n) {
         return $this->addUsingAlias(ContentImageTableMap::ID, $contentImageI18n->getId(), $comparison);
     } elseif ($contentImageI18n instanceof ObjectCollection) {
         return $this->useContentImageI18nQuery()->filterByPrimaryKeys($contentImageI18n->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByContentImageI18n() only accepts arguments of type \\Thelia\\Model\\ContentImageI18n or Collection');
     }
 }