/** * Filter the query by a related \App\Propel\DeliveryPeriodic object * * @param \App\Propel\DeliveryPeriodic|ObjectCollection $deliveryPeriodic the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildDeliveryQuery The current query, for fluid interface */ public function filterByDeliveryPeriodic($deliveryPeriodic, $comparison = null) { if ($deliveryPeriodic instanceof \App\Propel\DeliveryPeriodic) { return $this->addUsingAlias(DeliveryTableMap::COL_DELIVERY_ID, $deliveryPeriodic->getDeliveryId(), $comparison); } elseif ($deliveryPeriodic instanceof ObjectCollection) { return $this->useDeliveryPeriodicQuery()->filterByPrimaryKeys($deliveryPeriodic->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByDeliveryPeriodic() only accepts arguments of type \\App\\Propel\\DeliveryPeriodic or Collection'); } }