@@ -155,7 +155,7 @@ class Base
$this->modelSQL = $sql = "INSERT INTO " . $this->getTable($table) . "(`" . join("`, `", $replaceObj['fields']) . "`) VALUES('" . join("', '", $replaceObj['values']) . "')";
$rs = $this->setQuery($sql);
$this->setError();
- return $this->AffectedRows($rs);
+ return $this->lastInsertId();
}
/**
*