What you want is http://book.cakephp.org/view/113/Code-Generation-with-Bake

The Bake script will look at your database and automatically generate
the required model files. Use it!

On Dec 4, 11:59 pm, Marcelo Andrade <[email protected]> wrote:
> On Thu, Dec 3, 2009 at 3:22 AM, John Andersen <[email protected]> wrote:
> > Sorry to say Anand, but your schema does not conform to what CakePHP
> > expects, which makes it difficult to make it work with CakePHP,
> > without specifying a lot of information.
>
> > Suggest you rethink your schema, so that:
> > 1) It conforms to CakePHP (table names plural, foreign keys equal
> > foreign key table name singular + underscore + 'id', etc.;
>
> Not really needed.  If you cannot conform to Cake conventions,
> just configure it.  Model attributes like $useTable, $useDbConfig,
> $primaryKey and $foreign_key for associations are your friends.
>
> http://book.cakephp.org/view/71/Model-Attributes
>
> Best regards.
>
> --
> MARCELO DE F. ANDRADE
> Belem, PA, Amazonia, Brazil
> Linux User #221105

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to