Beispiel #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    SocioQuery The current query, for fluid interface
  */
 public function filterByComentario($comentario, $comparison = null)
 {
     if ($comentario instanceof Comentario) {
         return $this->addUsingAlias(SocioPeer::ID, $comentario->getSocioId(), $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');
     }
 }