This commit is contained in:
2021-03-31 01:56:56 +08:00
parent 81e899fceb
commit 1705d3d3f8
+1 -1
View File
@@ -144,7 +144,7 @@ class ActiveRecord extends BaseActiveRecord
* @return bool|static
* @throws Exception
*/
public static function createAndUpdate(array $condition, array $attributes = []): bool|static
public static function createOrUpdate(array $condition, array $attributes = []): bool|static
{
if (empty($attributes)) {
return \logger()->addError(FIND_OR_CREATE_MESSAGE, 'mysql');