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