On 5 ene, 11:59, steveh <[email protected]> wrote: > Folks, > > I'm a bit new to CakePHP (Java guy from the way back time)and all was > going well and I have been very happy with the framework until.... I > am trying to simply html->link a column record in a table to a view. > Pretty basic stuff and I have done it a dozen times, with test dbs > that have always had an index key of id. The problem is, my new db has > a primary key index called refindKey not id. In the Cake PHP docs and > a books I have looked at it appears that Cake is enamored with id as > an index. I don't exactly control the db (it's generated by a Kapow > robot). All works correctly until the sql fires and it wants to > append .id to the query string. Here is an extract from the tail of > the query error dump. Nowhere in the code do I mention id for anything > so Cake id auto-assuming something.
Use var $primaryKey in your model. Also of possible interest: use var $useTable to define a table with a different name than specified by cake conventions. -- Saludos Adriano --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
