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