/**
  * Filter the query by a related Notificacion object
  *
  * @param     Notificacion $notificacion  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return    Tipo_notificacionQuery The current query, for fluid interface
  */
 public function filterByNotificacion($notificacion, $comparison = null)
 {
     if ($notificacion instanceof Notificacion) {
         return $this->addUsingAlias(Tipo_notificacionPeer::ID, $notificacion->getId_tipo_notificacion(), $comparison);
     } elseif ($notificacion instanceof PropelCollection) {
         return $this->useNotificacionQuery()->filterByPrimaryKeys($notificacion->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByNotificacion() only accepts arguments of type Notificacion or PropelCollection');
     }
 }