On Fri, Jul 13, 2012 at 10:24 AM, Greg Skerman <[email protected]> wrote:
> 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

No harm in that  :)

> 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).

That's cleared that up for me. I had never tried it out, it was just a
hunch that occured to me when I read it again.

> 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....

Kersacly.

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

Reply via email to