Often it is easier to create a model for the linking table, i.e. OrderProduct and use belongsTo Order and Product rather than using HABTM associations. Then query using that model.
Mark On Monday, June 25, 2012 11:10:11 AM UTC-4, Caio Vncius wrote: > > Hello, > > need a help in a ratio of two-mode HABTM tables. > > I have a table called orders and another called produts. Estaão related > orders_produts the table. Unless the relationship but usually when I need > to display per EXAMPLE products which have an order, I do not. How can I do > to get all the products of an order and pull the table daod sda produts > such as price and description ... > > sorry my english > -- 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
