/**
  * 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 ChildPeriodicPlanQuery The current query, for fluid interface
  */
 public function filterByDeliveryPeriodic($deliveryPeriodic, $comparison = null)
 {
     if ($deliveryPeriodic instanceof \App\Propel\DeliveryPeriodic) {
         return $this->addUsingAlias(PeriodicPlanTableMap::COL_PERIODIC_PLAN_ID, $deliveryPeriodic->getDeliveryPeriodicPlanId(), $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');
     }
 }