/** * Overwritten to also store $this->_related. This property was not returned, of course, * so when serializing it would disappear. * @return array */ public function __sleep() { $props = parent::__sleep(); $props[] = '_related'; $props[] = '_virtual'; return $props; }
public function __sleep() { return array_merge(array('_specialGets', '_traitQueue'), parent::__sleep()); }
/** * Store table, primary key and data in serialized object * * @return array */ public function __sleep() { return array_merge(array('hooks'), parent::__sleep()); }