コード例 #1
0
ファイル: BasePerfilQuery.php プロジェクト: kcornejo/usac
 /**
  * Filter the query by a related PerfilMenu object
  *
  * @param   PerfilMenu|PropelObjectCollection $perfilMenu  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return   PerfilQuery The current query, for fluid interface
  * @throws   PropelException - if the provided filter is invalid.
  */
 public function filterByPerfilMenu($perfilMenu, $comparison = null)
 {
     if ($perfilMenu instanceof PerfilMenu) {
         return $this->addUsingAlias(PerfilPeer::ID, $perfilMenu->getPerfilId(), $comparison);
     } elseif ($perfilMenu instanceof PropelObjectCollection) {
         return $this->usePerfilMenuQuery()->filterByPrimaryKeys($perfilMenu->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByPerfilMenu() only accepts arguments of type PerfilMenu or PropelCollection');
     }
 }