/**
  * Filter the query by a related Alquiler object
  *
  * @param     Alquiler|PropelCollection $alquiler The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return    SocioAlquilerQuery The current query, for fluid interface
  */
 public function filterByAlquiler($alquiler, $comparison = null)
 {
     if ($alquiler instanceof Alquiler) {
         return $this->addUsingAlias(SocioAlquilerPeer::ALQUILER_ID, $alquiler->getId(), $comparison);
     } elseif ($alquiler instanceof PropelCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(SocioAlquilerPeer::ALQUILER_ID, $alquiler->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByAlquiler() only accepts arguments of type Alquiler or PropelCollection');
     }
 }