- 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.
推薦閱讀
- AutoCAD 2022快速入門、進階與精通
- Painter繪畫實例教程
- 中文版Maya 2022完全自學(xué)教程
- Drools JBoss Rules 5.0 Developer's Guide
- RESTful PHP Web Services
- AutoCAD 2020從入門到精通
- 新編 中文版Photoshop入門與提高
- PostgreSQL 9.0 High Performance
- Altium Designer 21 PCB設(shè)計官方指南(高級實戰(zhàn))
- MATLAB R2024a完全自學(xué)一本通
- LaTeX入門與實戰(zhàn)應(yīng)用
- Unity 3D游戲開發(fā)(第2版)
- CAD/CAM應(yīng)用教程
- 3ds Max影視動畫角色設(shè)計技法教程
- 手把手教你學(xué)成PPT高手