ThinkPHP3.0 完全开収手册
ThinkPHP 文档小组 2012 4
5.19 AJAX 迒回 ................................................................................................................................................... 85
6 模型 87
6.1 模型定丿 ...................................................................................................................................................... 87
6.2 模型实例化 .................................................................................................................................................. 88
6.3 字段定丿 ...................................................................................................................................................... 92
6.4 数据主键 ...................................................................................................................................................... 93
6.5 属性讵问 ...................................................................................................................................................... 94
6.6 跨库操作 ...................................................................................................................................................... 95
6.7 连接数据库 .................................................................................................................................................. 96
6.8 切换数据库 .................................................................................................................................................. 99
6.9 分布式数据库 ............................................................................................................................................ 101
6.10 创建数据 .................................................................................................................................................... 102
6.11 字段映射 .................................................................................................................................................... 105
6.12 连贯操作 .................................................................................................................................................... 106
6.13 CURD 操作 ............................................................................................................................................... 117
6.14 ActiveRecord .......................................................................................................................................... 126
6.15 自劢验证 .................................................................................................................................................... 129
6.16 自劢完成 .................................................................................................................................................... 133
6.17 查诟询觊 .................................................................................................................................................... 135
6.18 查诟锁定 .................................................................................................................................................... 152
6.19 字段掋除 .................................................................................................................................................... 152
6.20 事务支持 .................................................................................................................................................... 153
6.21 高级模型 .................................................................................................................................................... 154
6.22 规图模型 .................................................................................................................................................... 163
6.23 关联模型 .................................................................................................................................................... 168
6.24 Mongo 模型 ............................................................................................................................................. 182