You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -134,7 +137,7 @@ private static function _get_model_info() {
134
137
returnself::$_models[$class_name];
135
138
}
136
139
137
-
returnself::_error(self::get_name().' must be registered with it\'s corresponding table name and database. Use '.self::get_name().'::register($db, $table)');
140
+
returnself::_error(self::get_name().' must be registered with it\'s corresponding table name and database. Use \Models\\'.self::get_name().'::register($db, $table)');
138
141
}
139
142
140
143
/**
@@ -277,6 +280,7 @@ public function update($arg1, $arg2 = null) {
277
280
if (!$model) returnfalse;
278
281
279
282
$table = $model['table'];
283
+
$pk = $model['pk'];
280
284
$data = [];
281
285
282
286
if (isset($arg1) && !isset($arg2)) {
@@ -287,23 +291,62 @@ public function update($arg1, $arg2 = null) {
0 commit comments