Generating Schema...
<?
class Splash extends AppModel
{
var $name = 'Splash';
}
?>Schema file: schema.php generated
When I open the schema.php file, I see the following:
<?php
/* SVN FILE: $Id$ */
/* App schema generated on: 2011-08-27 09:08:25 : 1314438085*/
class AppSchema extends CakeSchema {
var $name = 'App';
function before($event = array()) {
return true;
}
function after($event = array()) {
}
}
If I delete the schema.php file and try again, this time passing -f as an option, I see this output:
Generating Schema...
Schema file: schema.php generated
and opening up this file I see a filled in table definition as I'd expect. So it seems that the -f flag is needed even for tables that have models defined for them. This seems to contradict the documentation at http://book.cakephp.org/view/1524/Generating-and-using-Schema-files. Or perhaps I'm doing something wrong?
Any tips on this would greatly be appreciated.
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
No comments:
Post a Comment