bartaakos/cserializebehavior

CSerializeBehavior by Kenrick Buchanan

1.0.1 2015-09-05 11:53 UTC

This package is not auto-updated.

Last update: 2024-03-12 04:04:06 UTC


README

@author Kenrick Buchanan nsbucky@gmail.com

@license http://www.yiiframework.com/license/

CSerializeBehavior allows a model to specify some attributes to be arrays and serialized upon save and unserialized after a Find() function is called on the model.

public function behaviors()
{
    return array(
        'CSerializeBehavior' => array(
            'class' => 'vendor.bartaakos.cserializebehavior.CSerializeBehavior',
            'serialAttributes' => array('validator_options'),
        )
    );
}