Never mind. I figured out what the problem was. Propel failed to generate my 
models because of the default date values for my date fields.

Alex


----- Original Message ----
From: Alex Fernandez <[EMAIL PROTECTED]>
To: [email protected]
Sent: Sunday, May 11, 2008 5:16:13 PM
Subject: [symfony-users] Symfony 1.1, Admin generator, and build-schema xml


I'm playing with RC1 and couldn't remember from sf 1.0 if I had generated the 
models before using the admin generator.
I have not generated any models but have Propel.ini configured correctly. I can 
generate the admin module for a model but when I access the module, I get the 
following exception:

[11-May-2008 16:05:36] PHP sfInitializationException:  Unable to scaffold 
nonexistent model "Campaigns". in 
C:\www\symfony-1.1\lib\generator\sfCrudGenerator.class.php on line 57
[11-May-2008 16:05:36] PHP Stack trace:
[11-May-2008 16:05:36] PHP   1. {main}() 
C:\www\sfLeadIoMgr-1.1\web\backend_dev.php:0
[11-May-2008 16:05:36] PHP   2. sfContext->dispatch() 
C:\www\sfLeadIoMgr-1.1\web\backend_dev.php:6
[11-May-2008 16:05:36] PHP   3. sfFrontWebController->dispatch() 
C:\www\symfony-1.1\lib\util\sfContext.class.php:163
[11-May-2008 16:05:36] PHP   4. sfController->forward() 
C:\www\symfony-1.1\lib\controller\sfFrontWebController.class.php:53
[11-May-2008 16:05:36] PHP   5. sfConfigCache->import() 
C:\www\symfony-1.1\lib\controller\sfController.class.php:197
[11-May-2008 16:05:36] PHP   6. sfConfigCache->checkConfig() 
C:\www\symfony-1.1\lib\config\sfConfigCache.class.php:244
[11-May-2008 16:05:36] PHP   7. sfConfigCache->callHandler() 
C:\www\symfony-1.1\lib\config\sfConfigCache.class.php:193
[11-May-2008 16:05:36] PHP   8. sfGeneratorConfigHandler->execute() 
C:\www\symfony-1.1\lib\config\sfConfigCache.class.php:105
[11-May-2008 16:05:36] PHP   9. sfGeneratorConfigHandler::getContent() 
C:\www\symfony-1.1\lib\config\sfGeneratorConfigHandler.class.php:75
[11-May-2008 16:05:36] PHP  10. sfGeneratorManager->generate() 
C:\www\symfony-1.1\lib\config\sfGeneratorConfigHandler.class.php:95
[11-May-2008 16:05:36] PHP  11. sfCrudGenerator->generate() 
C:\www\symfony-1.1\lib\generator\sfGeneratorManager.class.php:82
[11-May-2008 16:05:36] Unable to scaffold nonexistent model "Campaigns".

I used this to generate the module for this object without a problem:
> symfony-1.1 propel:init-admin backend campaigns Campaigns

I then had used the following to generate my schema.xml file without any 
problems:
> symfony-1.1 propel:build-schema --xml

I cleared my cache and ran the propel:init-admin task again but still got the 
same issue.

Has anybody tried the admin generator in 1.1 and had this issue?

Alex



________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. Try it now.


      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to