/** * Filter the query by a related AidConfiguration object * * @param AidConfiguration|PropelCollection $aidConfiguration The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return AidDetailsQuery The current query, for fluid interface */ public function filterByAidConfiguration($aidConfiguration, $comparison = null) { if ($aidConfiguration instanceof AidConfiguration) { return $this ->addUsingAlias(AidDetailsPeer::INDICE_AID, $aidConfiguration->getIndiceAid(), $comparison); } elseif ($aidConfiguration instanceof PropelCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this ->addUsingAlias(AidDetailsPeer::INDICE_AID, $aidConfiguration->toKeyValue('PrimaryKey', 'IndiceAid'), $comparison); } else { throw new PropelException('filterByAidConfiguration() only accepts arguments of type AidConfiguration or PropelCollection'); } }
/** * Declares an association between this object and a AidConfiguration object. * * @param AidConfiguration $v * @return AidDetails The current object (for fluent API support) * @throws PropelException */ public function setAidConfiguration(AidConfiguration $v = null) { if ($v === null) { $this->setIndiceAid(0); } else { $this->setIndiceAid($v->getIndiceAid()); } $this->aAidConfiguration = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the AidConfiguration object, it will not be re-added. if ($v !== null) { $v->addAidDetails($this); } return $this; }
/** * Exclude object from result * * @param AidConfiguration $aidConfiguration Object to remove from the list of results * * @return AidConfigurationQuery The current query, for fluid interface */ public function prune($aidConfiguration = null) { if ($aidConfiguration) { $this->addUsingAlias(AidConfigurationPeer::INDICE_AID, $aidConfiguration->getIndiceAid(), Criteria::NOT_EQUAL); } return $this; }