diff --git a/classes/Model.class.php b/classes/Model.class.php index be6232c..c82decf 100644 --- a/classes/Model.class.php +++ b/classes/Model.class.php @@ -184,12 +184,13 @@ class ModelChangeResult extends ModelResult } } -class ModelInsertResult extends ModelResult +class ModelInsertResult extends ModelChangeResult { public $id; function __construct($resource) { + parent::__construct($resource); $this->id = mysqli_insert_id($resource); }