brayun / yii2-serialized
Yii2 Serialized Attributes Behavior
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-11-06 03:48:42 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, ], ]; }