public function _init($data = array()) { parent::_init($data); if (!isset($data['id'])) { $this->set_id(0); } }