Hi,
I thought I was going mad, but no, it was Cake! When I saving data in
a HABTM relationship, it's reversing the field order, which means if
I'm editing an event with an ID of 4, and making a relationship to a
Tag with an ID of 25, it actually runs the following query:
INSERT INTO events_tags (tag_id,event_id) VALUES (('3','25')
but it should be:
INSERT INTO events_tags (tag_id,event_id) VALUES (('25','3')
how the hell is this happening? what can I do to stop it?
cheers,
jb
--
jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---