Example #1
0
	/**
	 * Filter the query by a related PlugInAutorisation object
	 *
	 * @param     PlugInAutorisation $plugInAutorisation  the related object to use as filter
	 * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
	 *
	 * @return    PlugInQuery The current query, for fluid interface
	 */
	public function filterByPlugInAutorisation($plugInAutorisation, $comparison = null)
	{
		if ($plugInAutorisation instanceof PlugInAutorisation) {
			return $this
				->addUsingAlias(PlugInPeer::ID, $plugInAutorisation->getPluginId(), $comparison);
		} elseif ($plugInAutorisation instanceof PropelCollection) {
			return $this
				->usePlugInAutorisationQuery()
				->filterByPrimaryKeys($plugInAutorisation->getPrimaryKeys())
				->endUse();
		} else {
			throw new PropelException('filterByPlugInAutorisation() only accepts arguments of type PlugInAutorisation or PropelCollection');
		}
	}