Я успешно интегрировал Symfony2 с PropelBundle , но у меня возникли проблемы с реализацией процесса обратного инжиниринга с драйвером pgsql над базой данных, развернутой на сервере posgresql-8.4. Для этого я запустил команду php app/console propel:reverse
для генерации схемы XML и получил следующую ошибку:
[propel-schema-reverse] There was an error building XML from metadata:
SQLSTATE[42704]: Undefined object: 7
ERROR: unrecognized configuration parameter "tables"
Есть идеи? Моя станция - Ubuntu 10.10, и полный журнал консоли процесса:
Use connection named default
Buildfile: /var/www/symfony2/vendor/propel/generator/build.xml
[resolvepath] Resolved /tmp/propel-gen to /tmp/propel-gen
propel-project-builder > check-project-or-dir-set:
propel-project-builder > check-project-set:
propel-project-builder > set-project-dir:
propel-project-builder > check-buildprops-exists:
propel-project-builder > check-buildprops-for-propel-gen:
propel-project-builder > check-buildprops:
propel-project-builder > configure:
[echo] Loading project-specific props from /tmp/propel-gen/build.properties
[property] Loading /tmp/propel-gen/build.properties
propel-project-builder > reverse:
[phing] Calling Buildfile '/var/www/symfony2/vendor/propel/generator/build-propel.xml' with target 'reverse'
[property] Loading /var/www/symfony2/vendor/propel/generator/./default.properties
propel > reverse:
[echo] +-----------------------------------------------+
[echo] | |
[echo] | Generating XML from PDO connection ! |
[echo] | |
[echo] +-----------------------------------------------+
[propel-schema-reverse] Reading database structure...
[propel-schema-reverse] There was an error building XML from metadata: SQLSTATE[42704]: Undefined object: 7 ERROR: unrecognized configuration parameter "tables"
BUILD FINISHED
Total time: 1.6386 second
[ErrorException]
Warning: copy(/tmp/propel-gen/schema.xml): failed to open stream: No such file or directory in /var/www/symfony2/vendor/symfony/src/Symfony/Component/HttpKernel/Util/Filesystem.php line 44
propel:reverse [--connection[="..."]]