/** * createInsertSql * * build the insert sql query for the model and return it * * @access private * @return string */ private function createInsertSql() { $to_insert = $this->fieldsToInsert(); return "insert into `" . $this->_table . "` " . SqlBuilder::set($to_insert); }