Example #1
0
	/**
	 * Filter the query by a related JAidEleves object
	 *
	 * @param     JAidEleves $jAidEleves  the related object 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 filterByJAidEleves($jAidEleves, $comparison = null)
	{
		if ($jAidEleves instanceof JAidEleves) {
			return $this
				->addUsingAlias(AidDetailsPeer::ID, $jAidEleves->getIdAid(), $comparison);
		} elseif ($jAidEleves instanceof PropelCollection) {
			return $this
				->useJAidElevesQuery()
				->filterByPrimaryKeys($jAidEleves->getPrimaryKeys())
				->endUse();
		} else {
			throw new PropelException('filterByJAidEleves() only accepts arguments of type JAidEleves or PropelCollection');
		}
	}