Me to: Brooksides-MacBook-Pro:app brooksidestudios$ cake bake model all
Welcome to CakePHP v2.0.0 Console --------------------------------------------------------------- App : app Path: /Users/brooksidestudios/Sites/grticket2/app/ --------------------------------------------------------------- You can download PHPUnit from http://phpunit.de Baking Customer Baking model class for Customer... Creating file /Users/brooksidestudios/Sites/grticket2/app/Model/ Customer.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Model/Customer.php` Baking test fixture for Customer... Creating file /Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ CustomerFixture.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ CustomerFixture.php` Bake is detecting possible fixtures... Baking test case for Customer Model ... Creating file /Users/brooksidestudios/Sites/grticket2/app/Test/Case/ Model/CustomerTest.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Test/Case/Model/ CustomerTest.php` Baking Device Baking model class for Device... Creating file /Users/brooksidestudios/Sites/grticket2/app/Model/ Device.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Model/Device.php` Baking test fixture for Device... Creating file /Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ DeviceFixture.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ DeviceFixture.php` Bake is detecting possible fixtures... Baking test case for Device Model ... Creating file /Users/brooksidestudios/Sites/grticket2/app/Test/Case/ Model/DeviceTest.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Test/Case/Model/ DeviceTest.php` Baking Group Baking model class for Group... Creating file /Users/brooksidestudios/Sites/grticket2/app/Model/ Group.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Model/Group.php` Baking test fixture for Group... Creating file /Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ GroupFixture.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ GroupFixture.php` Bake is detecting possible fixtures... Baking test case for Group Model ... Creating file /Users/brooksidestudios/Sites/grticket2/app/Test/Case/ Model/GroupTest.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Test/Case/Model/ GroupTest.php` Baking Inventory Baking model class for Inventory... Creating file /Users/brooksidestudios/Sites/grticket2/app/Model/ Inventory.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Model/ Inventory.php` Baking test fixture for Inventory... Creating file /Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ InventoryFixture.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ InventoryFixture.php` Bake is detecting possible fixtures... Fatal error: Cannot redeclare class Inventory in /Users/ brooksidestudios/Sites/grticket2/app/Model/inventory.php on line 186 On Oct 18, 7:23 pm, ludo monster <[email protected]> wrote: > I'm trying to run "cake bake model all" but it dies. > > Here's a snippet from when I try to bake the table that blows up: > > <code> > --------------------------------------------------------------- > Please select one of the following validation options: > --------------------------------------------------------------- > 1 - alphanumeric > 2 - between > ... > 30 - uuid > 31 - Do not do any validation on this field. > ... or enter in a valid regex validation string. > > [31] > > Would you like to define model associations > (hasMany, hasOne, belongsTo, etc.)? (y/n) > [y] > > One moment while the associations are detected. > --------------------------------------------------------------- > Please confirm the following associations: > --------------------------------------------------------------- > Game hasMany GameEffect? (y/n) > [y] > > Game hasMany GameItem? (y/n) > [y] > > Game hasMany GameMob? (y/n) > [y] > > Would you like to define some additional model associations? (y/n) > [n] > > > --------------------------------------------------------------- > The following Model will be created: > --------------------------------------------------------------- > Name: Game > DB Table: `games` > Associations: > Game hasMany GameEffect > Game hasMany GameItem > Game hasMany GameMob > --------------------------------------------------------------- > Look okay? (y/n) > [y] > > > Baking model class for Game... > > Creating file C:\Zend\Apache2\htdocs\Eclipse\MVCBattle\cake\app\Model > \Game.php > Wrote `C:\Zend\Apache2\htdocs\Eclipse\MVCBattle\cake\app\Model > \Game.php` > PHPUnit is not installed. Do you want to bake unit test files anyway? > (y/n) > [y] > > > You can download PHPUnit fromhttp://phpunit.de > > Baking test fixture for Game... > > File `C:\Zend\Apache2\htdocs\Eclipse\MVCBattle\cake\app\Test\Fixture > \GameFixture > .php` exists > Do you want to overwrite? (y/n/q) > [n] > > Skip `C:\Zend\Apache2\htdocs\Eclipse\MVCBattle\cake\app\Test\Fixture > \GameFixture > .php` > > Bake is detecting possible fixtures... > > Fatal error: Cannot redeclare class Game in C:\Zend\Apache2\htdocs > \Eclipse\MVCBa > ttle\cake\app\Model\Game.php on line 67 > > </code> > > Any suggestions? -- 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
