Exemple #1
0
 public function save(\Models\HallModel $model)
 {
     $query = 'INSERT INTO halls (seating, venue_id, hallName) VALUE (?, ?, ?)';
     $params = [$model->getSeating(), $model->getVenue_Id(), $model->getHallName()];
     $this->db->query($query, $params);
     return $this->db->row();
 }