I was getting this error today on a new Symfony project. The problem was that I had defined the schema in the schema.xml file, but there was a conflicting schema.yml file that sat empty. Removing (
rm -f config/schema.yml
fixed my problems and propel-build-model + propel-build-sql succeeded.Execution of target “sql-template” failed for the following reason: /home/eosterman/metaphr/trunk/lib/symfony-1.0.6/lib/vendor/propel-generator/build-propel.xml:187:1: No package found for database “” in generated-schema.xml. The propel.packageObjectModel property requires the package attribute to be set for each database.
[phingcall] /home/eosterman/metaphr/trunk/lib/symfony-1.0.6/lib/vendor/propel-generator/build-propel.xml:187:1: No package found for database “” in generated-schema.xml. The propel.packageObjectModel property requires the package attribute to be set for each database.
Related posts:
Awesome!
Thanks for posting, had the same problem.
Best regards,
Matze
OMG!! it works for me too.
thanks
Very good!!
I have the same problem in a reinstallation of a project.
Thanks
Good!! it works!
Thanks!
[...] http://www.osterman.com/wordpress/2007/08/17/symfony-no-package-found-for-database-in-generated-schemaxm... [...]
Yes, it works…
Thanks a lot!! Really helpfull
You are the best… very very thanks
Thank you, thank you, thank you.
You sir are a champion! Cheers!