urmaul / yii-jsonfields
Yii CActiveRecord behavior that allows to create array attributes which are stored in DB using json.
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/urmaul/yii-jsonfields
Requires
- yiisoft/yii: ~1.1.15
This package is not auto-updated.
Last update: 2020-01-24 15:33:30 UTC
README
Abandoned since Mysql supports json itself.
JsonFields Yii Behavior
Yii CActiveRecord behavior that allows to create array attributes which are stored in DB using json.
How to use
TODO: add comments
How to attach
public function behaviors() { return array( array( 'class' => 'ext.jsonfields.JsonFieldsBehavior', 'attributes' => 'customParams', 'arrayMode' => true, ), ); }
Settings
TODO: add comments
- attributes
- arrayMode