Well i think you should have no problem using $this->model->find() method even if you don't have a PK field as per cakephp 1.2.x (not sure about previous versions). If still don't work try $this->model- >primaryKey="fieldname" to make virtual primary key and see what happen.
On Apr 10, 7:45 am, 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 -~----------~----~----~----~------~----~------~--~---
