check the core cake's containable behavior http://book.cakephp.org/view/1323/Containable -- Lep pozdrav, Tilen Majerle http://majerle.eu
2011/5/19 thomaus <[email protected]> > Hi there, > > I would like to paginate a model with a recursive field. > > My main model is called "Result". "Result" belongsTo "Test" and "Test" > belongsTo "Language" > > What I would like to achieve is to get the field "Language.name" (only > available in the model "Language") as a sortable field of my "Result" > pagination. I'm pretty sure this is feasible but I can't achieve it. > > I think the best way to do it would be to find a way to merge the > "Language.name" field into the "Test" but I can't achieve it neither. > > Please, no "So simple! Just use CakePHP bind models!"-like answers, > what I need is some working code! > > Thanks for helping! > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > at http://groups.google.com/group/cake-php > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
