Hi all,

i have a Problem with my Models that use HABTM relations (also i'm not
sure if this causes the trouble)

when using the $model->del($id) i get an sql error:

SQL Error: 1066: Not unique table/alias: 'Company'

the query built by cake is:
DELETE `Company` FROM `companies` AS `Company` WHERE `Company`.`id` IN
(11)

why does cake to that?
i could of course write my own query as this is a very tiny one, but i
would like to understand why cake does this...

thanks a lot

stefan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to