brayun / yii2-serialized
Yii2 Serialized Attributes Behavior
Package info
github.com/brayun/yii2-serialized
Type:yii2-extension
pkg:composer/brayun/yii2-serialized
1.1
2017-09-04 18:33 UTC
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2026-03-11 10:11:13 UTC
README
This Yii2 model behavior allows you to store arrays in attributes. To attach the behavior put the following code in your model:
public function behaviors() { return [ 'serializedAttributes' => [ 'class' => SerializedAttributes::className(), 'attributes' => ['serializedData', 'moreSerializedData'], // 'encode' => true, ], ]; }