- CakePHP 1.3 Application Development Cookbook
- Mariano Iglesias
- 163字
- 2021-04-09 22:04:16
In this chapter, we will cover:
- Adding
Containable
to all models - Limiting the bindings returned in a find
- Modifying binding parameters for a find
- Modifying binding conditions for a find
- Changing the JOIN type of one-to-one associations
- Defining multiple associations to the same model
- Adding bindings on the fly
This chapter deals with one of the most important aspects of a CakePHP application: the relationship between models, also known as model bindings or associations.
Being an integral part of any application's logic, it is of crucial importance that we master all aspects of how model bindings can be manipulated to get the data we need, when we need it.
In order to do so, we will go through a series of recipes that will show us how to change the way bindings are fetched, what bindings and what information from a binding is returned, how to create new bindings, and how to build hierarchical data structures.
推薦閱讀
- Solid Works 2021產品設計標準教程
- FreeSWITCH 1.0.6
- Pro/E Wildfire 5.0中文版入門、精通與實戰
- CorelDRAW服裝設計實用教程(第四版)
- 中文版CorelDRAW X8基礎培訓教程(全彩版)
- 數碼攝影后期處理秘笈:Photoshop CC專業調色(第2版)
- IT Inventory and Resource Management with OCS Inventory NG 1.02
- Photoshop數碼攝影后期處理技法從入門到精通
- 中文版After Effects CC 2018 動漫、影視特效后期合成秘技
- 3ds Max/VRay印象燈光/材質/渲染技術精粹Ⅲ
- 中文版Photoshop平面設計入門教程
- SketchUP草圖繪制從新手到高手
- 攝影師的后期必修課(RAW格式篇)
- 攝影師的后期課:Lightroom后期技法篇
- Apache Geronimo 2.1: Quick Reference