Yii 2.0: yii2-serialized-attributes

ActiveRecord behavior that allows you to store arrays in attributes
1 follower

To attach the behavior put the following code in your model:

public function behaviors()
        return [
            'serializedAttributes' => [
                'class' => SerializedAttributes::className(),
                // Define the attributes you want to be serialized
                'attributes' => ['serializedData', 'moreSerializedData'],

Be the first person to leave a comment

Please to leave your comment.

Create extension
No downloadable files yet