Yes! That was it, thanks so much!
On Nov 8, 12:43 pm, Imperfekted <[EMAIL PROTECTED]> wrote: > Hello, > Cake expects a table's primary key to be 'id'. This is mentioned in > the manual in the chapter on models. If you want to use a different > field as primary key you can specify it with the model variable > primaryKey. > > /Mikael > > On 7 Nov, 22:36, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > Hello Community, > > > i am doing my first steps here with cake. I already have a database > > and i want to add websites for edit update delete / view of the > > tables. > > > The index() method already works fine, you can see it > > here:http://itimarketing.dyndns.org/website/destinations/ > > > The problem is, that when it comes to the view, edit, update, cake > > always generates the SQL Query slightly wrong. > > > This is what gets generated: > > SELECT `Destination`.`destination_id` FROM `destinations` AS > > `Destination` WHERE `Destination`.`id` = 1 LIMIT 1 > > > But it should be: > > <snip> WHERE `Destination`.`destination_id` = 1 <snip> > > > I can not find where i made the mistake, anyone a little tip where i > > need to look for that? > > > Thanks so much, > > > Tobias --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
