Hi list,...
I'm following http://www.symfony-project.com/askeet/2. I wrote the
schema.xml by hand. i wrote the config/databases.yml like this:
all:
propel:
class: sfPropelDatabase
param:
phptype: mysql
host: localhost
database: askeet
username: root
password: root
added the line "propel.mysql.tableType = InnoDB" and changed mysql
settings in config/propel.ini. But when i ran propel-build-model, i
got this:
============
$ symfony propel-build-model
symfony propel-build-model
>> schema converting "/home/bappenas/sfpr...skeet/config/schema.yml" to XML
>> schema putting /home/bappenas/sfprojec...eet/config/generated-schema.xml
Buildfile: /usr/share/php5/PEAR/symfony/vendor/propel-generator/build.xml
[resolvepath] Resolved /home/bappenas/sfprojects/askeet/config to
/home/bappenas/sfprojects/askeet/config
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
/home/bappenas/sfprojects/askeet/config/propel.ini
[property] Loading /home/bappenas/sfprojects/askeet/config/propel.ini
propel-project-builder > om:
[phing] Calling Buildfile
'/usr/share/php5/PEAR/symfony/vendor/propel-generator/build-propel.xml'
with target 'om'
[property] Loading
/usr/share/php5/PEAR/symfony/vendor/propel-generator/./build.properties
[property] Loading
/usr/share/php5/PEAR/symfony/vendor/propel-generator/./default.properties
propel > check-run-only-on-schema-change:
propel > om-check:
propel > om:
[echo] +------------------------------------------+
[echo] | |
[echo] | Generating Peer-based Object Model for |
[echo] | YOUR Propel project! (NEW OM BUILDERS)! |
[echo] | |
[echo] +------------------------------------------+
[phingcall] Calling Buildfile
'/usr/share/php5/PEAR/symfony/vendor/propel-generator/build-propel.xml'
with target 'om-template'
[property] Loading
/usr/share/php5/PEAR/symfony/vendor/propel-generator/./build.properties
[property] Loading
/usr/share/php5/PEAR/symfony/vendor/propel-generator/./default.properties
propel > om-template:
[propel-om] Target database type: mysql
[propel-om] Target package: lib.model
[propel-om] Using template path:
/usr/share/php5/PEAR/symfony/vendor/propel-generator/templates
[propel-om] Output directory: /home/bappenas/sfprojects/askeet
[propel-om] Processing: generated-schema.xml
[propel-om] Processing: schema.xml
Execution of target "om-template" failed for the following reason:
/usr/share/php5/PEAR/symfony/vendor/propel-generator/build-propel.xml:436: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/share/php5/PEAR/symfony/vendor/propel-generator/build-propel.xml:436:1:
No package found for database "propel" in schema.xml. The
propel.packageObjectModel property requires the package attribute to
be set for each database.
BUILD FINISHED
Total time: 0.4982 seconds
>> file- /home/bappenas/sfprojects/askeet/config/generated-schema.xml
============
I've noticed the http://www.symfony-project.com/askeet/2 said:
The database name is set to propel in this file, whatever the actual
database name. This is a parameter used to connect the Propel layer to
the symfony framework. The actual name of the database will be defined
in the databases.yml configuration file (see below).
So which one is right? Did i miss something in the tutorial? Please help.
Thanks,
Adinda P
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---