Development

#2712 (propel:build-model from propel:build-schema xml-file fails)

You must first sign up to be able to contribute.

Ticket #2712 (closed defect: fixed)

Opened 1 year ago

Last modified 9 months ago

propel:build-model from propel:build-schema xml-file fails

Reported by: arthur.koziel Assigned to: fabien
Priority: major Milestone: 1.0.12
Component: generator Version: 1.0.11
Keywords: propel Cc:
Qualification: Unreviewed

Description

Revision: 6675

Creating a schema from an existing database with propel:build-schema and then trying to build the models fails due to a missing package attribute:

[propel-om] Processing: schema.xml Execution of target "om-template" failed for the following reason: /usr/lib/php/pear/symfony_11/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:470:1: No package found for database "propel" in schema.xml. The propel.packageObjectModel property requires the package attribute to be set for each database. [phingcall] /usr/lib/php/pear/symfony_11/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:470:1: No package found for database "propel" in schema.xml. The propel.packageObjectModel property requires the package attribute to be set for each database.

However, converting the model with propel:schema-to-yml and then executing propel:build-model works fine.

Change History

01/23/08 12:44:22 changed by pihentagy

Adding package="lib.model" to the database tag in schema.xml solves the problem :-O

http://www.symfony-project.org/forum/index.php/m/18015/

03/07/08 12:29:08 changed by fabien

  • version changed from 1.1.0 to 1.0.11.
  • milestone set to 1.0.12.

03/07/08 12:30:03 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

in r7759 and r7760