| propel:build-forms builds no forms with 2 databases [message #65967] |
Tue, 25 November 2008 15:26  |
gieser Messages: 2 Registered: November 2008 |
Junior Member |
|
|
Hi guys,
I'm completely new to symfony. I need to access two databases and both models have built successfully. But when I try to generate a CRUD, I get the following error message:
symfony propel-generate-crud frontend teams Teams
Fatal error: Class 'TeamsForm' not found in /opt/lampp/htdocs/symfony/lib/generator/sfAdminGenerator.class.php on line 722
I then tried to build the Forms myself, by calling propel:build-forms which prints the following dump:
>> propel generating form classes
I guess I've got something wrong with my propel.ini or my schemas.
Here are the corresponding files:
propel.ini
propel.targetPackage = lib.model.tsldata
propel.packageObjectModel = true
propel.project = tsl
propel.database = mysql
propel.database.createUrl = mysql://root@localhost/
propel.database.url = mysql://root@localhost/tsldata
propel.addGenericAccessors = true
propel.addGenericMutators = true
propel.addTimeStamp = false
propel.schema.validate = false
; directories
propel.home = .
propel.output.dir = /home/alexander/askeet
propel.schema.dir = ${propel.output.dir}/config
propel.conf.dir = ${propel.output.dir}/config
propel.phpconf.dir = ${propel.output.dir}/config
propel.sql.dir = ${propel.output.dir}/data/sql
propel.runtime.conf.file = runtime-conf.xml
propel.php.dir = ${propel.output.dir}
propel.default.schema.basename = schema
propel.datadump.mapper.from = *schema.xml
propel.datadump.mapper.to = *data.xml
; builder settings
propel.builder.peer.class = plugins.sfPropelPlugin.lib.propel.builder.SfPeerBuilder
propel.builder.object.class = plugins.sfPropelPlugin.lib.propel.builder.SfObjectBuilder
propel.builder.objectstub.class = plugins.sfPropelPlugin.lib.propel.builder.SfExtensionObjectBuilder
propel.builder.peerstub.class = plugins.sfPropelPlugin.lib.propel.builder.SfExtensionPeerBuilder
propel.builder.objectmultiextend.class = plugins.sfPropelPlugin.lib.propel.builder.SfMultiExtendObjectBuilder
propel.builder.mapbuilder.class = plugins.sfPropelPlugin.lib.propel.builder.SfMapBuilderBuilder
propel.builder.interface.class = propel.engine.builder.om.php5.PHP5InterfaceBuilder
propel.builder.node.class = propel.engine.builder.om.php5.PHP5NodeBuilder
propel.builder.nodepeer.class = propel.engine.builder.om.php5.PHP5NodePeerBuilder
propel.builder.nodestub.class = propel.engine.builder.om.php5.PHP5ExtensionNodeBuilder
propel.builder.nodepeerstub.class = propel.engine.builder.om.php5.PHP5ExtensionNodePeerBuilder
propel.builder.addIncludes = false
propel.builder.addComments = false
propel.builder.addBehaviors = false
propel.mysql.tableType = InnoDB
propel.defaultTimeStampFormat = Y-m-d H:i:s
propel.defaultTimeFormat = H:i:s
propel.defaultDateFormat = Y-m-d
tsldata.schema.yml:
tsldata:
_attributes:
package: lib.model.tsldata
tsl_saisons:
_attributes: { idMethod: native }
id: { type: INTEGER, required: true, autoIncrement: true, primaryKey: true }
title: { type: VARCHAR, size: '45', required: true }
beginn: { type: TIMESTAMP, required: true }
ende: { type: TIMESTAMP }
tsl_schuetzen:
tsl_spiele_id: { type: INTEGER, required: true, primaryKey: true, foreignTable: tsl_spiele, foreignReference: id, onDelete: RESTRICT, onUpdate: RESTRICT }
tsl_spieler_id: { type: INTEGER, required: true, primaryKey: true, foreignTable: tsl_spieler, foreignReference: id, onDelete: RESTRICT, onUpdate: RESTRICT }
anzahlTore: { type: INTEGER, required: true }
_indexes: { fk_tsl_schuetzen_tsl_spiele: [tsl_spiele_id], fk_tsl_schuetzen_tsl_spieler: [tsl_spieler_id] }
tsl_spiele:
_attributes: { idMethod: native }
id: { type: INTEGER, required: true, autoIncrement: true, primaryKey: true }
saisonId: { type: INTEGER, required: true }
begegnung: { type: VARCHAR, size: '255', required: true }
toreGegner: { type: INTEGER, required: true }
tsl_saisons_id: { type: INTEGER, required: true, foreignTable: tsl_saisons, foreignReference: id, onDelete: RESTRICT, onUpdate: RESTRICT }
_indexes: { fk_tsl_spiele_tsl_saisons: [tsl_saisons_id] }
tsl_spieler:
_attributes: { idMethod: native }
id: { type: INTEGER, required: true, autoIncrement: true, primaryKey: true }
vorname: { type: VARCHAR, size: '45', required: true }
nachname: { type: VARCHAR, size: '45', required: true }
tsl_spieler_in_team_in_saison:
tsl_spieler_id: { type: INTEGER, required: true, primaryKey: true }
tsl_saisons_id: { type: INTEGER, required: true, primaryKey: true }
tsl_teams_id: { type: INTEGER, required: true, primaryKey: true }
_indexes: { fk_tsl_spieler_has_tsl_saisons_tsl_spieler: [tsl_spieler_id], fk_tsl_spieler_has_tsl_saisons_tsl_saisons: [tsl_saisons_id], fk_tsl_spieler_has_tsl_saisons_tsl_teams: [tsl_teams_id] }
tsl_teams:
_attributes: { idMethod: native }
id: { type: INTEGER, required: true, autoIncrement: true, primaryKey: true }
name: { type: VARCHAR, size: '45', required: true }
cms.schema.yml
cms:
_attributes:
package: lib.model.cms
teams:
_attributes: { idMethod: native }
id: { type: INTEGER, required: true, autoIncrement: true, primaryKey: true }
bereichid: { type: INTEGER, required: true }
teamname: { type: VARCHAR, required: true }
teammembers:
_attributes: { idMethod: native }
id: { type: INTEGER, required: true, autoIncrement: true, primaryKey: true }
teamid: { type: INTEGER, required: true , foreignTable: teams, foreignReference: id }
vorname: { type: VARCHAR, required: true }
nachname: { type: VARCHAR, required: true}
Could you please give me a hint, what I have done wrong? I couldn't find anything on the forums (maybe I'm to stupid to search properly ^^)
|
|
|