/** * Resets all references to other model objects or collections of model objects. * * This method is a user-space workaround for PHP's inability to garbage collect * objects with circular references (even in PHP 5.3). This is currently necessary * when using Propel in certain daemon or large-volume/high-memory operations. * * @param boolean $deep Whether to also clear the references on all referrer objects. */ public function clearAllReferences($deep = false) { if ($deep && !$this->alreadyInClearAllReferencesDeep) { $this->alreadyInClearAllReferencesDeep = true; if ($this->collArticulovariantevalors) { foreach ($this->collArticulovariantevalors as $o) { $o->clearAllReferences($deep); } } if ($this->aArticulo instanceof Persistent) { $this->aArticulo->clearAllReferences($deep); } if ($this->aPropiedad instanceof Persistent) { $this->aPropiedad->clearAllReferences($deep); } $this->alreadyInClearAllReferencesDeep = false; } // if ($deep) if ($this->collArticulovariantevalors instanceof PropelCollection) { $this->collArticulovariantevalors->clearIterator(); } $this->collArticulovariantevalors = null; $this->aArticulo = null; $this->aPropiedad = null; }
/** * Resets all references to other model objects or collections of model objects. * * This method is a user-space workaround for PHP's inability to garbage collect * objects with circular references (even in PHP 5.3). This is currently necessary * when using Propel in certain daemon or large-volume/high-memory operations. * * @param boolean $deep Whether to also clear the references on all referrer objects. */ public function clearAllReferences($deep = false) { if ($deep && !$this->alreadyInClearAllReferencesDeep) { $this->alreadyInClearAllReferencesDeep = true; if ($this->aArticulo instanceof Persistent) { $this->aArticulo->clearAllReferences($deep); } if ($this->aArticulovariante instanceof Persistent) { $this->aArticulovariante->clearAllReferences($deep); } if ($this->aPropiedad instanceof Persistent) { $this->aPropiedad->clearAllReferences($deep); } if ($this->aPropiedadvalor instanceof Persistent) { $this->aPropiedadvalor->clearAllReferences($deep); } $this->alreadyInClearAllReferencesDeep = false; } // if ($deep) $this->aArticulo = null; $this->aArticulovariante = null; $this->aPropiedad = null; $this->aPropiedadvalor = null; }