bartaakos/cserializebehavior

CSerializeBehavior by Kenrick Buchanan

Installs: 936

Dependents: 2

Suggesters: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

1.0.1 2015-09-05 11:53 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'),
        )
    );
}