Hi,
I have two models -> Location and Voucher which have a HABTM
relationship joined by a LocationsVoucher table.
When I contain a find('all') query to "Location.id" and limit the
fields to "Voucher.id" I always get the join table as a result as
well, like this:
[0] => Array
(
[Voucher] => Array
(
[id] => 41
)
[Location] => Array
(
[0] => Array
(
[id] => 22
[LocationsVoucher] => Array
(
[id] => 9
[location_id] => 22
[voucher_id] => 41
[created] => 0000-00-00 00:00:00
[modified] => 0000-00-00 00:00:00
)
)
)
)
Is there a way to get rid of the join table (without processing the
array with PHP after the find('all) call...)?
Unfortunately I haven't found anything so far...
Cheers,
tobi_one
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---