From 00650a83d095a2f71ee7e936178f5855f726692c Mon Sep 17 00:00:00 2001 From: pzinovkin Date: Wed, 17 Dec 2008 13:29:49 +0000 Subject: [PATCH] ModelInsertResult now inherits `affected` property from ModelChangeResult git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@29 4cb57b5f-5bbd-dd11-951b-001d605cbbc5 --- classes/Model.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }