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