/** * Reload this WpTermRelationships from the database. * @return void */ public function Reload() { // Make sure we are actually Restored from the database if (!$this->__blnRestored) { throw new QCallerException('Cannot call Reload() on a new, unsaved WpTermRelationships object.'); } $this->DeleteCache(); // Reload the Object $objReloaded = WpTermRelationships::Load($this->intObjectId, $this->intTermTaxonomyId); // Update $this's local variables to match $this->intObjectId = $objReloaded->intObjectId; $this->__intObjectId = $this->intObjectId; $this->TermTaxonomyId = $objReloaded->TermTaxonomyId; $this->__intTermTaxonomyId = $this->intTermTaxonomyId; $this->intTermOrder = $objReloaded->intTermOrder; }