Esempio 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->aProduct !== null && $this->product_id !== $this->aProduct->getId()) {
         $this->aProduct = null;
     }
     if ($this->aFeature !== null && $this->feature_id !== $this->aFeature->getId()) {
         $this->aFeature = null;
     }
     if ($this->aFeatureAv !== null && $this->feature_av_id !== $this->aFeatureAv->getId()) {
         $this->aFeatureAv = null;
     }
 }
Esempio 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->aFeature !== null && $this->feature_id !== $this->aFeature->getId()) {
         $this->aFeature = null;
     }
     if ($this->aTemplate !== null && $this->template_id !== $this->aTemplate->getId()) {
         $this->aTemplate = null;
     }
 }
Esempio 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->aFeature !== null && $this->id !== $this->aFeature->getId()) {
         $this->aFeature = null;
     }
 }