Can you add a PK to the table? Create a new table with the same columns plus an auto_increment/serial/whatever and insert the rows from the 1st table. Drop the 1st one, then rename the 2nd.
On Thu, Apr 9, 2009 at 10:45 PM, mattalexx <[email protected]> wrote: > > Hi > > I am trying to access a database table that was built without a > primary key (I know). How would I go about this in CakePHP. Is it > possible or do I have to just use Model::query all the time? > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
