예제 #1
0
 /**
  * Filter the query by a related \Thelia\Model\FolderVersion object
  *
  * @param \Thelia\Model\FolderVersion|ObjectCollection $folderVersion  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 filterByFolderVersion($folderVersion, $comparison = null)
 {
     if ($folderVersion instanceof \Thelia\Model\FolderVersion) {
         return $this->addUsingAlias(FolderTableMap::ID, $folderVersion->getId(), $comparison);
     } elseif ($folderVersion instanceof ObjectCollection) {
         return $this->useFolderVersionQuery()->filterByPrimaryKeys($folderVersion->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByFolderVersion() only accepts arguments of type \\Thelia\\Model\\FolderVersion or Collection');
     }
 }