yii2-behaviors icon indicating copy to clipboard operation
yii2-behaviors copied to clipboard

Collection of useful behaviors for Yii Framework 2.0

Results 3 yii2-behaviors issues
Sort by recently updated
recently updated
newest added

Hi!, Thanks for this great project! Will be any update to support PHP 8.0? Many thanks!

example: ```php $user = User::find()->select(['id', 'name'])->one(); $user->name = 'abc'; $user->save(); ``` 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...

Carbonified attributes get dirty right after find: ```php $model = SomeModel::find()->one(); $model->getDirtyAttributes(); // got list of Carbon attributes here ``` My suggestion - rewrite oldAttribute after every conversion: ```php $this->owner->$attribute...