Symfony – No package found for database “” in generated-schema.xml

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:

  1. MogileFS HOWTO

10 comments

  1. Matze says:

    Awesome!

    Thanks for posting, had the same problem.

    Best regards,

    Matze

  2. Celso says:

    OMG!! it works for me too.

    thanks

  3. Jose says:

    Very good!!

    I have the same problem in a reinstallation of a project.

    Thanks

  4. Pedro says:

    Good!! it works!

    Thanks!

  5. Domingo says:

    Yes, it works…

  6. Max says:

    Thanks a lot!! Really helpfull

  7. Rafael says:

    You are the best… very very thanks

  8. Neon Knight says:

    Thank you, thank you, thank you.

  9. Kahn says:

    You sir are a champion! Cheers!

Leave a Reply

Your email address will not be published. Required fields are marked *

*