/**
  * Filter the query by a related \App\Propel\Order object
  *
  * @param \App\Propel\Order|ObjectCollection $order The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @throws \Propel\Runtime\Exception\PropelException
  *
  * @return ChildOrderProductQuery The current query, for fluid interface
  */
 public function filterByOrder($order, $comparison = null)
 {
     if ($order instanceof \App\Propel\Order) {
         return $this->addUsingAlias(OrderProductTableMap::COL_ORDER_ID, $order->getOrderId(), $comparison);
     } elseif ($order instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(OrderProductTableMap::COL_ORDER_ID, $order->toKeyValue('PrimaryKey', 'OrderId'), $comparison);
     } else {
         throw new PropelException('filterByOrder() only accepts arguments of type \\App\\Propel\\Order or Collection');
     }
 }