Browse Source

ModelInsertResult now inherits `affected` property from ModelChangeResult

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@29 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
master
pzinovkin 16 years ago
parent
commit
00650a83d0
  1. 3
      classes/Model.class.php

3
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);
}

Loading…
Cancel
Save