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