Пример #1
0
 /**
  * Filter the query by a related Comentario object
  *
  * @param     Comentario $comentario  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return    PeliculaQuery The current query, for fluid interface
  */
 public function filterByComentario($comentario, $comparison = null)
 {
     if ($comentario instanceof Comentario) {
         return $this->addUsingAlias(PeliculaPeer::ID, $comentario->getPeliculaId(), $comparison);
     } elseif ($comentario instanceof PropelCollection) {
         return $this->useComentarioQuery()->filterByPrimaryKeys($comentario->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByComentario() only accepts arguments of type Comentario or PropelCollection');
     }
 }