Ejemplo n.º 1
0
 /**
  * Checks and repairs the internal consistency of the object.
  *
  * This method is executed after an already-instantiated object is re-hydrated
  * from the database.  It exists to check any foreign keys to make sure that
  * the objects related to the current object are correct based on foreign key.
  *
  * You can override this method in the stub class, but you should always invoke
  * the base method from the overridden method (i.e. parent::ensureConsistency()),
  * in case your model changes.
  *
  * @throws PropelException
  */
 public function ensureConsistency()
 {
     if ($this->aOrderCoupon !== null && $this->coupon_id !== $this->aOrderCoupon->getId()) {
         $this->aOrderCoupon = null;
     }
     if ($this->aModule !== null && $this->module_id !== $this->aModule->getId()) {
         $this->aModule = null;
     }
 }
Ejemplo n.º 2
0
 /**
  * Checks and repairs the internal consistency of the object.
  *
  * This method is executed after an already-instantiated object is re-hydrated
  * from the database.  It exists to check any foreign keys to make sure that
  * the objects related to the current object are correct based on foreign key.
  *
  * You can override this method in the stub class, but you should always invoke
  * the base method from the overridden method (i.e. parent::ensureConsistency()),
  * in case your model changes.
  *
  * @throws PropelException
  */
 public function ensureConsistency()
 {
     if ($this->aArea !== null && $this->area_id !== $this->aArea->getId()) {
         $this->aArea = null;
     }
     if ($this->aModule !== null && $this->delivery_module_id !== $this->aModule->getId()) {
         $this->aModule = null;
     }
 }
Ejemplo n.º 3
0
 /**
  * Checks and repairs the internal consistency of the object.
  *
  * This method is executed after an already-instantiated object is re-hydrated
  * from the database.  It exists to check any foreign keys to make sure that
  * the objects related to the current object are correct based on foreign key.
  *
  * You can override this method in the stub class, but you should always invoke
  * the base method from the overridden method (i.e. parent::ensureConsistency()),
  * in case your model changes.
  *
  * @throws PropelException
  */
 public function ensureConsistency()
 {
     if ($this->aModule !== null && $this->module_id !== $this->aModule->getId()) {
         $this->aModule = null;
     }
     if ($this->aHook !== null && $this->hook_id !== $this->aHook->getId()) {
         $this->aHook = null;
     }
 }
Ejemplo n.º 4
0
 /**
  * Checks and repairs the internal consistency of the object.
  *
  * This method is executed after an already-instantiated object is re-hydrated
  * from the database.  It exists to check any foreign keys to make sure that
  * the objects related to the current object are correct based on foreign key.
  *
  * You can override this method in the stub class, but you should always invoke
  * the base method from the overridden method (i.e. parent::ensureConsistency()),
  * in case your model changes.
  *
  * @throws PropelException
  */
 public function ensureConsistency()
 {
     if ($this->aCustomer !== null && $this->customer_id !== $this->aCustomer->getId()) {
         $this->aCustomer = null;
     }
     if ($this->aOrderAddressRelatedByInvoiceOrderAddressId !== null && $this->invoice_order_address_id !== $this->aOrderAddressRelatedByInvoiceOrderAddressId->getId()) {
         $this->aOrderAddressRelatedByInvoiceOrderAddressId = null;
     }
     if ($this->aOrderAddressRelatedByDeliveryOrderAddressId !== null && $this->delivery_order_address_id !== $this->aOrderAddressRelatedByDeliveryOrderAddressId->getId()) {
         $this->aOrderAddressRelatedByDeliveryOrderAddressId = null;
     }
     if ($this->aCurrency !== null && $this->currency_id !== $this->aCurrency->getId()) {
         $this->aCurrency = null;
     }
     if ($this->aModuleRelatedByPaymentModuleId !== null && $this->payment_module_id !== $this->aModuleRelatedByPaymentModuleId->getId()) {
         $this->aModuleRelatedByPaymentModuleId = null;
     }
     if ($this->aModuleRelatedByDeliveryModuleId !== null && $this->delivery_module_id !== $this->aModuleRelatedByDeliveryModuleId->getId()) {
         $this->aModuleRelatedByDeliveryModuleId = null;
     }
     if ($this->aOrderStatus !== null && $this->status_id !== $this->aOrderStatus->getId()) {
         $this->aOrderStatus = null;
     }
     if ($this->aLang !== null && $this->lang_id !== $this->aLang->getId()) {
         $this->aLang = null;
     }
 }
Ejemplo n.º 5
0
 /**
  * Checks and repairs the internal consistency of the object.
  *
  * This method is executed after an already-instantiated object is re-hydrated
  * from the database.  It exists to check any foreign keys to make sure that
  * the objects related to the current object are correct based on foreign key.
  *
  * You can override this method in the stub class, but you should always invoke
  * the base method from the overridden method (i.e. parent::ensureConsistency()),
  * in case your model changes.
  *
  * @throws PropelException
  */
 public function ensureConsistency()
 {
     if ($this->aProfile !== null && $this->profile_id !== $this->aProfile->getId()) {
         $this->aProfile = null;
     }
     if ($this->aModule !== null && $this->module_id !== $this->aModule->getId()) {
         $this->aModule = null;
     }
 }