Tuesday, October 28, 2008

Re: Cakephp Paginate with associated tables

Hi ,

I realize there is no one working on this google group.

Finally, I found the solution by myself. That is to use "container",
which can be found by http://book.cakephp.org/view/474/Containable.

Also, in order to get the exactly result, I'd like to add more
reference key or (foreign key).

In my case, I change the hasMany relationship to belongsTo. Then, use
unbindModel and bindModel to bind the relationship as I want.

HTH

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: