public function __sleep() { return array('_roles', '_resources', '_permissions'); // no need to save the current command ($this->command) }