We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
example:
$user = User::find()->select(['id', 'name'])->one(); $user->name = 'abc'; $user->save();
It will throw Exception like Undefined index: created_at ...
Undefined index: created_at ...
I find the CarbonBehavior.php in https://github.com/yii2mod/yii2-behaviors/blob/master/CarbonBehavior.php#L116
CarbonBehavior.php
Because I only select id, name, so it can not contain created_at in oldAttributes
id
name
created_at
oldAttributes
The text was updated successfully, but these errors were encountered:
No branches or pull requests
example:
It will throw Exception like
Undefined index: created_at ...
I find the
CarbonBehavior.php
in https://github.com/yii2mod/yii2-behaviors/blob/master/CarbonBehavior.php#L116
Because I only select
id
,name
, so it can not containcreated_at
inoldAttributes
The text was updated successfully, but these errors were encountered: