/** * Create a new record for the object in the database * * @return void */ public function create() { try { parent::create(); $this->db->insert("documents_link", array("id" => $this->model->getId())); } catch (Exception $e) { throw $e; } }