We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7bd58ff + 4e7d2dd commit e42b72eCopy full SHA for e42b72e
src/think/Model.php
@@ -1725,7 +1725,10 @@ private function autoOperation(&$data, $type)
1725
$args = isset($auto[4]) ? (array)$auto[4] : [];
1726
array_unshift($args, $auto[0]);
1727
array_unshift($args, $data);
1728
- $data[$auto[0]] = call_user_func_array([&$this, $auto[1]], $args);
+ $callRes = call_user_func_array([&$this, $auto[1]], $args);
1729
+ if ($callRes !== false) {
1730
+ $data[$auto[0]] = $callRes;
1731
+ }
1732
break;
1733
case 'function_with_data':
1734
// 使用函数进行填充,传入数组值和字段名
0 commit comments