Hi, i'm in a situation like the hasAndBelongsToMany example on Cake
Model Manual:
Array
(
[Post] => Array
(
[id] => 2
[user_id] => 25
[title] => Cake Model Associations
[body] => Time saving, easy, and powerful.
[created] => 2006-04-15 09:33:24
[modified] => 2006-04-15 09:33:24
[status] => 1
)
[Tag] => Array
(
[0] => Array
(
[id] => 247
[tag] => CakePHP
)
[1] => Array
(
[id] => 256
[tag] => Powerful Software
)
)
)
I need to sort all my row with $array['Tag'][...]['id']...
The order clause in model not work.
With debug i see the query.
Here an example:
SELECT * FROM `tags` AS `Tag` JOIN `posts_tags` ON
( `post_id`.`tag_id` =4 AND `post_id`.`tag_id` = `Tag`.`id` )
It do 1 select for each row of Post ... so the order clause is not
useful...
Some help?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---