Sunday, July 31, 2011

Re: newbie question about databases

On Mon, Aug 1, 2011 at 5:25 AM, dewolfe001 <mikedewolfe@gmail.com> wrote:
> Is there a way that I can generate app/config/schema PHP files from
> the SQL or MySQL database tables? I tried "cake schema generate node"
> from the console (node being the name of the table I wanted to pick
> up). But that just gives me the "blogs" table that ships as an example
> in CakePHP.

The following command will dump the whole schema by looking at the DB,
rather then the models.

cake schema generate -f

--
Simon Males

--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate