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