/** * {@inheritdoc} */ public function __wakeup() { parent::__wakeup(); // Initialize static caches. $this->parents = array(); $this->parentsAll = array(); $this->children = array(); $this->treeChildren = array(); $this->treeParents = array(); $this->treeTerms = array(); $this->trees = array(); }