/**
  * Filter the query by a related Pelicula object
  *
  * @param     Pelicula|PropelCollection $pelicula 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 filterByPelicula($pelicula, $comparison = null)
 {
     if ($pelicula instanceof Pelicula) {
         return $this->addUsingAlias(SocioAlquilerPeer::PELICULA_ID, $pelicula->getId(), $comparison);
     } elseif ($pelicula instanceof PropelCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(SocioAlquilerPeer::PELICULA_ID, $pelicula->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByPelicula() only accepts arguments of type Pelicula or PropelCollection');
     }
 }
 /**
  * Declares an association between this object and a Pelicula object.
  *
  * @param      Pelicula $v
  * @return     SocioAlquiler The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setPelicula(Pelicula $v = null)
 {
     if ($v === null) {
         $this->setPeliculaId(NULL);
     } else {
         $this->setPeliculaId($v->getId());
     }
     $this->aPelicula = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the Pelicula object, it will not be re-added.
     if ($v !== null) {
         $v->addSocioAlquiler($this);
     }
     return $this;
 }
 /**
  * Exclude object from result
  *
  * @param     Pelicula $pelicula Object to remove from the list of results
  *
  * @return    PeliculaQuery The current query, for fluid interface
  */
 public function prune($pelicula = null)
 {
     if ($pelicula) {
         $this->addUsingAlias(PeliculaPeer::ID, $pelicula->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }