/** * Filter the query by a related Mensaje object * * @param Mensaje $mensaje 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 filterByMensajeRelatedById_usuario_destinatario($mensaje, $comparison = null) { if ($mensaje instanceof Mensaje) { return $this->addUsingAlias(UsuarioPeer::ID, $mensaje->getId_usuario_destinatario(), $comparison); } elseif ($mensaje instanceof PropelCollection) { return $this->useMensajeRelatedById_usuario_destinatarioQuery()->filterByPrimaryKeys($mensaje->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByMensajeRelatedById_usuario_destinatario() only accepts arguments of type Mensaje or PropelCollection'); } }