public function __destruct() { // if (isset($this->fields)) { // $this->fields->__destruct(); // } parent::__destruct(); }