Re: newbie question about databases

2011-07-31 Thread dewolfe001
Thanks, Simon! That did the trick!

- Mike

On Jul 31, 3:46 pm, Simon Males  wrote:
> On Mon, Aug 1, 2011 at 5:25 AM, dewolfe001  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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: newbie question about databases

2011-07-31 Thread Simon Males
On Mon, Aug 1, 2011 at 5:25 AM, dewolfe001  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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php