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