コード例 #1
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->aPeriodicType) {
         $this->aPeriodicType->removePeriodicTypeI18n($this);
     }
     $this->periodic_type_id = null;
     $this->locale = null;
     $this->periodic_type_name = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->applyDefaultValues();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
コード例 #2
0
 /**
  * Exclude object from result
  *
  * @param   ChildPeriodicType $periodicType Object to remove from the list of results
  *
  * @return $this|ChildPeriodicTypeQuery The current query, for fluid interface
  */
 public function prune($periodicType = null)
 {
     if ($periodicType) {
         $this->addUsingAlias(PeriodicTypeTableMap::COL_PERIODIC_TYPE_ID, $periodicType->getPeriodicTypeId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
コード例 #3
0
ファイル: PeriodicPlan.php プロジェクト: mtornero/slowshop
 /**
  * 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->aResource) {
         $this->aResource->removePeriodicPlan($this);
     }
     if (null !== $this->aPeriodicType) {
         $this->aPeriodicType->removePeriodicPlan($this);
     }
     if (null !== $this->aFile) {
         $this->aFile->removePeriodicPlan($this);
     }
     $this->periodic_plan_id = null;
     $this->resource_id = null;
     $this->periodic_plan_name = null;
     $this->periodic_plan_point = null;
     $this->periodic_type_id = null;
     $this->delievery_periodic_weekday = null;
     $this->periodic_plan_pic = null;
     $this->created_at = null;
     $this->updated_at = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
コード例 #4
0
 /**
  * Filter the query by a related \App\Propel\PeriodicType object
  *
  * @param \App\Propel\PeriodicType|ObjectCollection $periodicType 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 ChildPeriodicTypeI18nQuery The current query, for fluid interface
  */
 public function filterByPeriodicType($periodicType, $comparison = null)
 {
     if ($periodicType instanceof \App\Propel\PeriodicType) {
         return $this->addUsingAlias(PeriodicTypeI18nTableMap::COL_PERIODIC_TYPE_ID, $periodicType->getPeriodicTypeId(), $comparison);
     } elseif ($periodicType instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(PeriodicTypeI18nTableMap::COL_PERIODIC_TYPE_ID, $periodicType->toKeyValue('PrimaryKey', 'PeriodicTypeId'), $comparison);
     } else {
         throw new PropelException('filterByPeriodicType() only accepts arguments of type \\App\\Propel\\PeriodicType or Collection');
     }
 }