/** * Filter the query by a related \CustomerGroupAcl\Model\AclI18n object * * @param \CustomerGroupAcl\Model\AclI18n|ObjectCollection $aclI18n the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildAclQuery The current query, for fluid interface */ public function filterByAclI18n($aclI18n, $comparison = null) { if ($aclI18n instanceof \CustomerGroupAcl\Model\AclI18n) { return $this->addUsingAlias(AclTableMap::ID, $aclI18n->getId(), $comparison); } elseif ($aclI18n instanceof ObjectCollection) { return $this->useAclI18nQuery()->filterByPrimaryKeys($aclI18n->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByAclI18n() only accepts arguments of type \\CustomerGroupAcl\\Model\\AclI18n or Collection'); } }