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