zen of coding

Example of CakePHP's Containable for deep model bindings

Here’s an example of using the Containble behavior when you’ve got deep and complex model relationships. Let’s consider the following model associations… User->Profile User->Account->AccountSummary User->Post->PostAttachment->PostAttachmentHistory->HistoryNotes User->Post->Tag It’s very possible that each of those models has other associations, so we need to use Containable to retrieve just the models we need[…]

Read More »
%d bloggers like this: