urmaul/yii-jsonfields
最新稳定版本:v1.0.0
Composer 安装命令:
composer require urmaul/yii-jsonfields
包简介
Yii CActiveRecord behavior that allows to create array attributes which are stored in DB using json.
README 文档
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
统计信息
- 总下载量: 29
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-07