/** * 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 UsuarioQuery The current query, for fluid interface */ public function filterByNotificacionRelatedById_emisor($notificacion, $comparison = null) { if ($notificacion instanceof Notificacion) { return $this->addUsingAlias(UsuarioPeer::ID, $notificacion->getId_emisor(), $comparison); } elseif ($notificacion instanceof PropelCollection) { return $this->useNotificacionRelatedById_emisorQuery()->filterByPrimaryKeys($notificacion->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByNotificacionRelatedById_emisor() only accepts arguments of type Notificacion or PropelCollection'); } }