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