/** * Filter the query by a related Solicitud_estado object * * @param Solicitud_estado|PropelCollection $solicitud_estado The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return SolicitudQuery The current query, for fluid interface */ public function filterBySolicitud_estado($solicitud_estado, $comparison = null) { if ($solicitud_estado instanceof Solicitud_estado) { return $this->addUsingAlias(SolicitudPeer::ID_ESTADO, $solicitud_estado->getId(), $comparison); } elseif ($solicitud_estado instanceof PropelCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(SolicitudPeer::ID_ESTADO, $solicitud_estado->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterBySolicitud_estado() only accepts arguments of type Solicitud_estado or PropelCollection'); } }
/** * Exclude object from result * * @param Solicitud_estado $solicitud_estado Object to remove from the list of results * * @return Solicitud_estadoQuery The current query, for fluid interface */ public function prune($solicitud_estado = null) { if ($solicitud_estado) { $this->addUsingAlias(Solicitud_estadoPeer::ID, $solicitud_estado->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Declares an association between this object and a Solicitud_estado object. * * @param Solicitud_estado $v * @return Solicitud The current object (for fluent API support) * @throws PropelException */ public function setSolicitud_estado(Solicitud_estado $v = null) { if ($v === null) { $this->setId_estado(NULL); } else { $this->setId_estado($v->getId()); } $this->aSolicitud_estado = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the Solicitud_estado object, it will not be re-added. if ($v !== null) { $v->addSolicitud($this); } return $this; }