Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function __sleep()
 {
     $vars = parent::__sleep();
     // Do not serialize static cache.
     unset($vars['parents'], $vars['parentsAll'], $vars['children'], $vars['treeChildren'], $vars['treeParents'], $vars['treeTerms'], $vars['trees']);
     return $vars;
 }