Exemple #1
0
 /**
  * Filter the query by a related Admisionanticipo object
  *
  * @param   Admisionanticipo|PropelObjectCollection $admisionanticipo  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 AdmisionQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByAdmisionanticipo($admisionanticipo, $comparison = null)
 {
     if ($admisionanticipo instanceof Admisionanticipo) {
         return $this->addUsingAlias(AdmisionPeer::IDADMISION, $admisionanticipo->getIdadmision(), $comparison);
     } elseif ($admisionanticipo instanceof PropelObjectCollection) {
         return $this->useAdmisionanticipoQuery()->filterByPrimaryKeys($admisionanticipo->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByAdmisionanticipo() only accepts arguments of type Admisionanticipo or PropelCollection');
     }
 }