Beispiel #1
0
 /**
  * Filter the query by a related Alquiler object
  *
  * @param     Alquiler $alquiler  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return    SocioQuery The current query, for fluid interface
  */
 public function filterByAlquiler($alquiler, $comparison = null)
 {
     if ($alquiler instanceof Alquiler) {
         return $this->addUsingAlias(SocioPeer::ID, $alquiler->getSocioId(), $comparison);
     } elseif ($alquiler instanceof PropelCollection) {
         return $this->useAlquilerQuery()->filterByPrimaryKeys($alquiler->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByAlquiler() only accepts arguments of type Alquiler or PropelCollection');
     }
 }