Example #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->aDeliveryType) {
         $this->aDeliveryType->removeDeliveryTypeI18n($this);
     }
     $this->delivery_type_id = null;
     $this->locale = null;
     $this->delivery_type_name = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->applyDefaultValues();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Example #2
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->aDeliveryType) {
         $this->aDeliveryType->removeDelivery($this);
     }
     $this->delivery_id = null;
     $this->delivery_type_id = null;
     $this->delivery_date = null;
     $this->created_at = null;
     $this->updated_at = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Example #3
0
 /**
  * Exclude object from result
  *
  * @param   ChildDeliveryType $deliveryType Object to remove from the list of results
  *
  * @return $this|ChildDeliveryTypeQuery The current query, for fluid interface
  */
 public function prune($deliveryType = null)
 {
     if ($deliveryType) {
         $this->addUsingAlias(DeliveryTypeTableMap::COL_DELIVERY_TYPE_ID, $deliveryType->getDeliveryTypeId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Example #4
0
 /**
  * Filter the query by a related \App\Propel\DeliveryType object
  *
  * @param \App\Propel\DeliveryType|ObjectCollection $deliveryType 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 ChildDeliveryQuery The current query, for fluid interface
  */
 public function filterByDeliveryType($deliveryType, $comparison = null)
 {
     if ($deliveryType instanceof \App\Propel\DeliveryType) {
         return $this->addUsingAlias(DeliveryTableMap::COL_DELIVERY_TYPE_ID, $deliveryType->getDeliveryTypeId(), $comparison);
     } elseif ($deliveryType instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(DeliveryTableMap::COL_DELIVERY_TYPE_ID, $deliveryType->toKeyValue('PrimaryKey', 'DeliveryTypeId'), $comparison);
     } else {
         throw new PropelException('filterByDeliveryType() only accepts arguments of type \\App\\Propel\\DeliveryType or Collection');
     }
 }