bartaakos / cserializebehavior
CSerializeBehavior by Kenrick Buchanan
Installs: 4 754
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- yiisoft/yii: >=1.1.14
This package is not auto-updated.
Last update: 2025-02-25 08:54:03 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'), ) ); }