/** * Insert */ public function insert($data, $ignore = []) { // Set the local model's data $this->data = $data; // Insert and set the local model's ID $this->id = Sql::insert(static::$table, $data, $ignore); // Return the newly created ID return $this->id; }