コード例 #1
0
ファイル: ResourceQuery.php プロジェクト: mtornero/slowshop
 /**
  * Filter the query by a related \App\Propel\PeriodicPlan object
  *
  * @param \App\Propel\PeriodicPlan|ObjectCollection $periodicPlan the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildResourceQuery The current query, for fluid interface
  */
 public function filterByPeriodicPlan($periodicPlan, $comparison = null)
 {
     if ($periodicPlan instanceof \App\Propel\PeriodicPlan) {
         return $this->addUsingAlias(ResourceTableMap::COL_RESOURCE_ID, $periodicPlan->getResourceId(), $comparison);
     } elseif ($periodicPlan instanceof ObjectCollection) {
         return $this->usePeriodicPlanQuery()->filterByPrimaryKeys($periodicPlan->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByPeriodicPlan() only accepts arguments of type \\App\\Propel\\PeriodicPlan or Collection');
     }
 }
コード例 #2
0
ファイル: File.php プロジェクト: mtornero/slowshop
 /**
  * @param ChildPeriodicPlan $periodicPlan The ChildPeriodicPlan object to add.
  */
 protected function doAddPeriodicPlan(ChildPeriodicPlan $periodicPlan)
 {
     $this->collPeriodicPlans[] = $periodicPlan;
     $periodicPlan->setFile($this);
 }
コード例 #3
0
 /**
  * Clears the current object, sets all attributes to their default values and removes
  * outgoing references as well as back-references (from other objects to this one. Results probably in a database
  * change of those foreign objects when you call `save` there).
  */
 public function clear()
 {
     if (null !== $this->aUser) {
         $this->aUser->removeUserPeriodicPlan($this);
     }
     if (null !== $this->aPeriodicPlan) {
         $this->aPeriodicPlan->removeUserPeriodicPlan($this);
     }
     $this->user_periodic_plan_id = null;
     $this->user_id = null;
     $this->periodic_plan_id = null;
     $this->created_at = null;
     $this->updated_at = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
コード例 #4
0
 /**
  * Clears the current object, sets all attributes to their default values and removes
  * outgoing references as well as back-references (from other objects to this one. Results probably in a database
  * change of those foreign objects when you call `save` there).
  */
 public function clear()
 {
     if (null !== $this->aPeriodicPlan) {
         $this->aPeriodicPlan->removePeriodicPlanException($this);
     }
     $this->periodic_plan_exception_id = null;
     $this->periodic_plan_id = null;
     $this->periodic_plan_exception_type = null;
     $this->periodic_plan_exception_date = null;
     $this->created_at = null;
     $this->updated_at = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
コード例 #5
0
 /**
  * Clears the current object, sets all attributes to their default values and removes
  * outgoing references as well as back-references (from other objects to this one. Results probably in a database
  * change of those foreign objects when you call `save` there).
  */
 public function clear()
 {
     if (null !== $this->aDelivery) {
         $this->aDelivery->removeDeliveryPeriodic($this);
     }
     if (null !== $this->aPeriodicPlan) {
         $this->aPeriodicPlan->removeDeliveryPeriodic($this);
     }
     $this->delivery_periodic_id = null;
     $this->delivery_id = null;
     $this->delivery_periodic_plan_id = null;
     $this->created_at = null;
     $this->updated_at = null;
     $this->sortable_rank = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
コード例 #6
0
 /**
  * Filter the query by a related \App\Propel\PeriodicPlan object
  *
  * @param \App\Propel\PeriodicPlan|ObjectCollection $periodicPlan 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 ChildPeriodicPlanExceptionQuery The current query, for fluid interface
  */
 public function filterByPeriodicPlan($periodicPlan, $comparison = null)
 {
     if ($periodicPlan instanceof \App\Propel\PeriodicPlan) {
         return $this->addUsingAlias(PeriodicPlanExceptionTableMap::COL_PERIODIC_PLAN_ID, $periodicPlan->getPeriodicPlanId(), $comparison);
     } elseif ($periodicPlan instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(PeriodicPlanExceptionTableMap::COL_PERIODIC_PLAN_ID, $periodicPlan->toKeyValue('PrimaryKey', 'PeriodicPlanId'), $comparison);
     } else {
         throw new PropelException('filterByPeriodicPlan() only accepts arguments of type \\App\\Propel\\PeriodicPlan or Collection');
     }
 }
コード例 #7
0
 /**
  * Exclude object from result
  *
  * @param   ChildPeriodicPlan $periodicPlan Object to remove from the list of results
  *
  * @return $this|ChildPeriodicPlanQuery The current query, for fluid interface
  */
 public function prune($periodicPlan = null)
 {
     if ($periodicPlan) {
         $this->addUsingAlias(PeriodicPlanTableMap::COL_PERIODIC_PLAN_ID, $periodicPlan->getPeriodicPlanId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }