Hey Robby, On Jan 6, 1:53 pm, Robby Anderson <[EMAIL PROTECTED]> wrote: > @nate - Thanks for the response. I wasn't necessarily fishing for your > reasoning, but I appreciate you taking the time and stating it > explicitly nonetheless. I still find it slightly inconsistent that you > can configure so many aspects of a model (such as table name, primary > key, foreign keys and display field, for example) away from the stated > conventions, but not those columns.
The subtle but important difference here is that the things you mentioned above (table name, primary key, foreign keys and display field) are all directly related to core functionalities of the Model, and changing them in any other way but a model property would be prohibitively complex, as each property is embedded deeply in many parts of the framework, most of which are not typically very exposed or accessible. In fact, all primary keys were at one point hardcoded to 'id', and the refactoring necessary to change that was extensive. The timestamp fields, on the other hand, are convenience functionality, and easy to override in user-land code. > I didn't submit the ticket willy-nilly (although admittedly I should > have included tests) - I submitted it because I thought it would be > genuinely useful to folks stuck with legacy DBs but still wanting to > use cake straight out of the box, and I tried to follow the > methodology that was already established in the model for additional > configuration. I get what you're saying, and in that sense I can understand your reasoning for submitting the ticket. I have no doubt that your specific ticket submission was well-considered, but whenever I take the time to write a detailed post, I try to address the issues in a generalized way, so that I can save myself some effort by referring back to it in future discussions. ;-) Anyhoo, thanks for the kudos and I appreciate the discussion. It's motivated me to finally do a more detailed write-up of the development process, which should hopefully save us all quite a bit of effort going forward. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
