bartaakos/cserializebehavior

CSerializeBehavior by Kenrick Buchanan

v1.0 2014-04-04 12:05 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',
            'serialAttributes' => array('validator_options'),
        )
    );
}