On Jan 24, 2008 3:01 PM, stefan <[EMAIL PROTECTED]> wrote:
>
> 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...

You might want to try updating to a more recent version of 1.2 (if
that's what you're using).  I ran into this problem and saw that it
got fixed.

-- 
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to