yeah i'm an all bake, all the time kinda guy. For most of the tools I write it works beautifully, because business systems tend to be based around CRUD - so maybe half my time is spent mapping a schema, then a bit of time mucking around in the scaffold, then build concrete classes and spend the rest of my time writing the small bits of business logic required and making it look nice/doing javascript bits etc.
I'm the stereotypical lazy programmer :P Heres an example. Current tool is a job number application form. It has 3 tables, applications, application_questions, application_answers running up the console right now, i get: Possible Models based on your current database: 1. Application 2. ApplicationQuestion 3. ApplicationAnswer Enter a number from the list above, type in the name of another model, or 'q' to exit [q] > had to do it to prove it to myself (It is Friday afternoon afterall, and I am liable to say stupid things) - but yeah, seems that it copes with underscores correctly - the baked models are not join tables, and the structure is Application hasMany ApplicationQuestion hasMany ApplicationAnswer, which is precisely what I expect it to be (no HABTM in sight). so either theres a problem with OP's schema, or possibly a custom inflection rule which is seeing "favorite" as plural, or I have no idea.... On Fri, Jul 13, 2012 at 7:02 PM, Mike Griffin <[email protected]> wrote: > On Fri, Jul 13, 2012 at 9:54 AM, Greg Skerman <[email protected]> wrote: > > I don't think so - i tend to use underscores in tables a lot as I like > > descriptive table names....and have never run into the problem. > > It just seemed too good to be true, I'll admit. Do you use bake to > create your models when you use underscores? > > > > > if the OP would drop their DB schema we might be able to get to the > bottom > > of it - but on the face of it is seems really strange to me > > > > Yup, and run the SELECT statement I asked for before too. > > Mike. > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > at http://groups.google.com/group/cake-php > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
