CakePHP Cookbook 3.x
In previous versions of CakePHP you needed to use recursive, bindModel(), unbindModel() and ContainableBehavior to reduce the loaded data to the set of associations you were interested in. A common tactic was to set recursive to -1 and use Containable to manage all associations. In CakePHP 3.0 ContainableBehavior, recursive, bindModel, and unbindModel have all been removed. Instead the contain() method0 码力 | 967 页 | 2.80 MB | 2 年前3
CakePHP Cookbook 2.x
10, 2023. Created using Sphinx 4.5.0. Containable class ContainableBehavior A new addition to the CakePHP 1.2 core is the ContainableBehavior. This model behavior allows you to filter and limit model your application, you may not need that much information from the Post model. One thing the ContainableBehavior does is help you cut down on what find() returns. For example, to get only the post-related ) ) This sort of help isn’t new: in fact, you can do that without the ContainableBehavior doing something like this: $this->Post->recursive = -1; $this->Post->find('all'); Containable0 码力 | 1096 页 | 958.62 KB | 2 年前3
CakePHP Cookbook 2.x
CakePHP Cookbook Documentation, Release 2.x Containable class ContainableBehavior A new addition to the CakePHP 1.2 core is the ContainableBehavior. This model behavior allows you to filter and limit model your application, you may not need that much information from the Post model. One thing the ContainableBehavior does is help you cut down on what find() returns. For example, to get only the post-related 2008-05-19 00:00:00 ) ) This sort of help isn’t new: in fact, you can do that without the ContainableBehavior doing something like this: $this->Post->recursive = -1; $this->Post->find('all'); Containable0 码力 | 820 页 | 2.52 MB | 2 年前3
CakePHP Cookbook 3.x
In previous versions of CakePHP you needed to use recursive, bindModel(), unbindModel() and ContainableBehavior to reduce the loaded data to the set of associations you were interested in. A common tactic was to set recursive to -1 and use Containable to manage all associations. In CakePHP 3.0 ContainableBehavior, recursive, bindModel, and unbindModel have all been removed. Instead the contain() method Updated ■ Find returns a Query Object ■ Finder Method Changes ■ Recursive and ContainableBehavior Removed ■ No afterFind Event or Virtual Fields ■ Associations No Longer Defined0 码力 | 1244 页 | 1.05 MB | 2 年前3
共 4 条
- 1













