/** * 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_receptor($notificacion, $comparison = null) { if ($notificacion instanceof Notificacion) { return $this->addUsingAlias(UsuarioPeer::ID, $notificacion->getId_receptor(), $comparison); } elseif ($notificacion instanceof PropelCollection) { return $this->useNotificacionRelatedById_receptorQuery()->filterByPrimaryKeys($notificacion->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByNotificacionRelatedById_receptor() only accepts arguments of type Notificacion or PropelCollection'); } }