PHP Method User::clearAllReferences, codiad Code Examples

This page contains top rated real world PHP examples of method User::clearAllReferences from package codiad extracted from open source projects. You can rate examples to help us improve the quality of examples
Example #1
Show file File: BaseSubscriber.php Project: rapila/plugin-newsletter
0
 /**
  * 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->collSubscriberGroupMemberships) {
             foreach ($this->collSubscriberGroupMemberships as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->aUserRelatedByCreatedBy instanceof Persistent) {
             $this->aUserRelatedByCreatedBy->clearAllReferences($deep);
         }
         if ($this->aUserRelatedByUpdatedBy instanceof Persistent) {
             $this->aUserRelatedByUpdatedBy->clearAllReferences($deep);
         }
         $this->alreadyInClearAllReferencesDeep = false;
     }
     // if ($deep)
     if ($this->collSubscriberGroupMemberships instanceof PropelCollection) {
         $this->collSubscriberGroupMemberships->clearIterator();
     }
     $this->collSubscriberGroupMemberships = null;
     $this->aUserRelatedByCreatedBy = null;
     $this->aUserRelatedByUpdatedBy = null;
 }
Example #2
Show file File: BaseTransaction.php Project: dapepe/tymio
0
 /**
  * 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-volumne/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->collBookings) {
             foreach ($this->collBookings as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->collTransactionClockings) {
             foreach ($this->collTransactionClockings as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->aUserRelatedByCreatorId instanceof Persistent) {
             $this->aUserRelatedByCreatorId->clearAllReferences($deep);
         }
         if ($this->aUserRelatedByUserId instanceof Persistent) {
             $this->aUserRelatedByUserId->clearAllReferences($deep);
         }
         $this->alreadyInClearAllReferencesDeep = false;
     }
     // if ($deep)
     if ($this->collBookings instanceof PropelCollection) {
         $this->collBookings->clearIterator();
     }
     $this->collBookings = null;
     if ($this->collTransactionClockings instanceof PropelCollection) {
         $this->collTransactionClockings->clearIterator();
     }
     $this->collTransactionClockings = null;
     $this->aUserRelatedByCreatorId = null;
     $this->aUserRelatedByUserId = null;
 }
Example #3
Show file File: BasememberProfile.php Project: nhallpot/CSCrew2015-back
0
 /**
  * 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->aUser instanceof Persistent) {
             $this->aUser->clearAllReferences($deep);
         }
         $this->alreadyInClearAllReferencesDeep = false;
     }
     // if ($deep)
     $this->aUser = null;
 }
Example #4
Show file File: BaseReference.php Project: rapila/cms-base
0
 /**
  * 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->aUserRelatedByCreatedBy instanceof Persistent) {
             $this->aUserRelatedByCreatedBy->clearAllReferences($deep);
         }
         if ($this->aUserRelatedByUpdatedBy instanceof Persistent) {
             $this->aUserRelatedByUpdatedBy->clearAllReferences($deep);
         }
         $this->alreadyInClearAllReferencesDeep = false;
     }
     // if ($deep)
     $this->aUserRelatedByCreatedBy = null;
     $this->aUserRelatedByUpdatedBy = null;
 }
Example #5
Show file File: BaseRole.php Project: rapila/cms-base
0
 /**
  * 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->collGroupRoles) {
             foreach ($this->collGroupRoles as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->collUserRoles) {
             foreach ($this->collUserRoles as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->collRights) {
             foreach ($this->collRights as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->aUserRelatedByCreatedBy instanceof Persistent) {
             $this->aUserRelatedByCreatedBy->clearAllReferences($deep);
         }
         if ($this->aUserRelatedByUpdatedBy instanceof Persistent) {
             $this->aUserRelatedByUpdatedBy->clearAllReferences($deep);
         }
         $this->alreadyInClearAllReferencesDeep = false;
     }
     // if ($deep)
     if ($this->collGroupRoles instanceof PropelCollection) {
         $this->collGroupRoles->clearIterator();
     }
     $this->collGroupRoles = null;
     if ($this->collUserRoles instanceof PropelCollection) {
         $this->collUserRoles->clearIterator();
     }
     $this->collUserRoles = null;
     if ($this->collRights instanceof PropelCollection) {
         $this->collRights->clearIterator();
     }
     $this->collRights = null;
     $this->aUserRelatedByCreatedBy = null;
     $this->aUserRelatedByUpdatedBy = null;
 }
Example #6
Show file File: BaseNewsletter.php Project: rapila/plugin-newsletter
0
 /**
  * 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->collNewsletterMailings) {
             foreach ($this->collNewsletterMailings as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->aUserRelatedByCreatedBy instanceof Persistent) {
             $this->aUserRelatedByCreatedBy->clearAllReferences($deep);
         }
         if ($this->aUserRelatedByUpdatedBy instanceof Persistent) {
             $this->aUserRelatedByUpdatedBy->clearAllReferences($deep);
         }
         $this->alreadyInClearAllReferencesDeep = false;
     }
     // if ($deep)
     if ($this->collNewsletterMailings instanceof PropelCollection) {
         $this->collNewsletterMailings->clearIterator();
     }
     $this->collNewsletterMailings = null;
     $this->aUserRelatedByCreatedBy = null;
     $this->aUserRelatedByUpdatedBy = null;
 }
Example #7
Show file File: BaseChart.php Project: harivemula/datawrapper
0
 /**
  * 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-volumne/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->collChartsRelatedById) {
             foreach ($this->collChartsRelatedById as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->collJobs) {
             foreach ($this->collJobs as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->aUser instanceof Persistent) {
             $this->aUser->clearAllReferences($deep);
         }
         if ($this->aOrganization instanceof Persistent) {
             $this->aOrganization->clearAllReferences($deep);
         }
         if ($this->aChartRelatedByForkedFrom instanceof Persistent) {
             $this->aChartRelatedByForkedFrom->clearAllReferences($deep);
         }
         $this->alreadyInClearAllReferencesDeep = false;
     }
     // if ($deep)
     if ($this->collChartsRelatedById instanceof PropelCollection) {
         $this->collChartsRelatedById->clearIterator();
     }
     $this->collChartsRelatedById = null;
     if ($this->collJobs instanceof PropelCollection) {
         $this->collJobs->clearIterator();
     }
     $this->collJobs = null;
     $this->aUser = null;
     $this->aOrganization = null;
     $this->aChartRelatedByForkedFrom = null;
 }
Example #8
Show file File: BasePage.php Project: rapila/cms-base
0
 /**
  * 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->collPagesRelatedById) {
             foreach ($this->collPagesRelatedById as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->collPagePropertys) {
             foreach ($this->collPagePropertys as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->collPageStrings) {
             foreach ($this->collPageStrings as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->collContentObjects) {
             foreach ($this->collContentObjects as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->collRights) {
             foreach ($this->collRights as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->aPageRelatedByCanonicalId instanceof Persistent) {
             $this->aPageRelatedByCanonicalId->clearAllReferences($deep);
         }
         if ($this->aUserRelatedByCreatedBy instanceof Persistent) {
             $this->aUserRelatedByCreatedBy->clearAllReferences($deep);
         }
         if ($this->aUserRelatedByUpdatedBy instanceof Persistent) {
             $this->aUserRelatedByUpdatedBy->clearAllReferences($deep);
         }
         $this->alreadyInClearAllReferencesDeep = false;
     }
     // if ($deep)
     // nested_set behavior
     $this->collNestedSetChildren = null;
     $this->aNestedSetParent = null;
     if ($this->collPagesRelatedById instanceof PropelCollection) {
         $this->collPagesRelatedById->clearIterator();
     }
     $this->collPagesRelatedById = null;
     if ($this->collPagePropertys instanceof PropelCollection) {
         $this->collPagePropertys->clearIterator();
     }
     $this->collPagePropertys = null;
     if ($this->collPageStrings instanceof PropelCollection) {
         $this->collPageStrings->clearIterator();
     }
     $this->collPageStrings = null;
     if ($this->collContentObjects instanceof PropelCollection) {
         $this->collContentObjects->clearIterator();
     }
     $this->collContentObjects = null;
     if ($this->collRights instanceof PropelCollection) {
         $this->collRights->clearIterator();
     }
     $this->collRights = null;
     $this->aPageRelatedByCanonicalId = null;
     $this->aUserRelatedByCreatedBy = null;
     $this->aUserRelatedByUpdatedBy = null;
 }
Example #9
Show file File: BaseDocumentation.php Project: rapila/plugin-documentation
0
 /**
  * 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->collDocumentationParts) {
             foreach ($this->collDocumentationParts as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->aLanguage instanceof Persistent) {
             $this->aLanguage->clearAllReferences($deep);
         }
         if ($this->aUserRelatedByCreatedBy instanceof Persistent) {
             $this->aUserRelatedByCreatedBy->clearAllReferences($deep);
         }
         if ($this->aUserRelatedByUpdatedBy instanceof Persistent) {
             $this->aUserRelatedByUpdatedBy->clearAllReferences($deep);
         }
         $this->alreadyInClearAllReferencesDeep = false;
     }
     // if ($deep)
     if ($this->collDocumentationParts instanceof PropelCollection) {
         $this->collDocumentationParts->clearIterator();
     }
     $this->collDocumentationParts = null;
     $this->aLanguage = null;
     $this->aUserRelatedByCreatedBy = null;
     $this->aUserRelatedByUpdatedBy = null;
 }
Example #10
Show file File: BaseLink.php Project: rapila/cms-base
0
 /**
  * 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->aLanguage instanceof Persistent) {
             $this->aLanguage->clearAllReferences($deep);
         }
         if ($this->aUserRelatedByOwnerId instanceof Persistent) {
             $this->aUserRelatedByOwnerId->clearAllReferences($deep);
         }
         if ($this->aLinkCategory instanceof Persistent) {
             $this->aLinkCategory->clearAllReferences($deep);
         }
         if ($this->aUserRelatedByCreatedBy instanceof Persistent) {
             $this->aUserRelatedByCreatedBy->clearAllReferences($deep);
         }
         if ($this->aUserRelatedByUpdatedBy instanceof Persistent) {
             $this->aUserRelatedByUpdatedBy->clearAllReferences($deep);
         }
         $this->alreadyInClearAllReferencesDeep = false;
     }
     // if ($deep)
     $this->aLanguage = null;
     $this->aUserRelatedByOwnerId = null;
     $this->aLinkCategory = null;
     $this->aUserRelatedByCreatedBy = null;
     $this->aUserRelatedByUpdatedBy = null;
 }
Example #11
Show file File: BaseLanguage.php Project: rapila/cms-base
0
 /**
  * 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->collPageStrings) {
             foreach ($this->collPageStrings as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->collLanguageObjects) {
             foreach ($this->collLanguageObjects as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->collLanguageObjectHistorys) {
             foreach ($this->collLanguageObjectHistorys as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->collTranslations) {
             foreach ($this->collTranslations as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->collUsersRelatedByLanguageId) {
             foreach ($this->collUsersRelatedByLanguageId as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->collDocuments) {
             foreach ($this->collDocuments as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->collLinks) {
             foreach ($this->collLinks as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->aUserRelatedByCreatedBy instanceof Persistent) {
             $this->aUserRelatedByCreatedBy->clearAllReferences($deep);
         }
         if ($this->aUserRelatedByUpdatedBy instanceof Persistent) {
             $this->aUserRelatedByUpdatedBy->clearAllReferences($deep);
         }
         $this->alreadyInClearAllReferencesDeep = false;
     }
     // if ($deep)
     if ($this->collPageStrings instanceof PropelCollection) {
         $this->collPageStrings->clearIterator();
     }
     $this->collPageStrings = null;
     if ($this->collLanguageObjects instanceof PropelCollection) {
         $this->collLanguageObjects->clearIterator();
     }
     $this->collLanguageObjects = null;
     if ($this->collLanguageObjectHistorys instanceof PropelCollection) {
         $this->collLanguageObjectHistorys->clearIterator();
     }
     $this->collLanguageObjectHistorys = null;
     if ($this->collTranslations instanceof PropelCollection) {
         $this->collTranslations->clearIterator();
     }
     $this->collTranslations = null;
     if ($this->collUsersRelatedByLanguageId instanceof PropelCollection) {
         $this->collUsersRelatedByLanguageId->clearIterator();
     }
     $this->collUsersRelatedByLanguageId = null;
     if ($this->collDocuments instanceof PropelCollection) {
         $this->collDocuments->clearIterator();
     }
     $this->collDocuments = null;
     if ($this->collLinks instanceof PropelCollection) {
         $this->collLinks->clearIterator();
     }
     $this->collLinks = null;
     $this->aUserRelatedByCreatedBy = null;
     $this->aUserRelatedByUpdatedBy = null;
 }
Example #12
Show file File: BasehelpHour.php Project: nhallpot/CSCrew2015-back
0
 /**
  * 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->collhelpHourSignins) {
             foreach ($this->collhelpHourSignins as $o) {
                 $o->clearAllReferences($deep);
             }
         }
         if ($this->aUser instanceof Persistent) {
             $this->aUser->clearAllReferences($deep);
         }
         $this->alreadyInClearAllReferencesDeep = false;
     }
     // if ($deep)
     if ($this->collhelpHourSignins instanceof PropelCollection) {
         $this->collhelpHourSignins->clearIterator();
     }
     $this->collhelpHourSignins = null;
     $this->aUser = null;
 }