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