public function save(\Models\ConferenceModel $conf) { $query = 'INSERT INTO conferences (confName, startDate, endDate, venue_id, user_id) VALUES (?, ?, ?, ?, ?)'; $param = [$conf->getConfName(), $conf->getStartDate(), $conf->getEndDate(), $conf->getVenueId(), $conf->getUserId()]; $this->db->query($query, $param); return $this->db->row(); }