I'm new to Symphony, and I'm also not successful in making valid models.
I created my project - which uses propell - and the following schema.iml is written:
propel: poc: id: ~ message: {type: varchar} (140), Required: true} Authors: {type: varchar (255), essential: true} plus: {type: integer, default: 0} zero: {type: integer, default: 0} created_a: ~ Then I execute the following commands without errors:
$ php symfony propel: build --sql $ php symfony propel: insert-sql $ php symfony propel: build -model But when I fix Trying to load or generate modules, I get this error:
$ php symfony propel: data-load> & Gt; PHP Fatal Error: Promote Load Data with "/ home / me / www / poc / data / fixtures" class continuous basepoke :: in peer /home/me/www/poc/lib/model/om/basePoc.php Can not redefine line 85 Fatal error: class continuous basepoke :: can not redefine peer / row / on / email / www.poc / lib / model / om / basePoc.php on line 85 Class continuous Sardar has been defined twice in BasePak.FP, but why?
I rebuilt Gogal and the project several times, but I was not able to see my mistake.
If you are using sfPropelPlugin instead of sfPropelPlugin, just read the README file on the plugin, you The last step is missing:
Change the path of symphony behavior in your project's config / propel.ini file: [ini ] Propel.behavior Symfaonikclas = Plginsksfapropelormplginklibkbihavierksfapropelbehviorsimfony Propelkbihavierksymfaoni_il8nkclas = Plginsksfapropelormplginklibkbhowi Awrksfapropelbehvioril8n Propelkbihavierksymfaoni_il8n_tronsleshnkclas = Plginsksfapropelormplginklibkbihavierksfapropelbehvioril8nTranslation propel. Behavior.symfony_behaviors.class = plugins.sfPropelORMPlugin.lib.behavior.SfPropelBehaviorSymfonyBehaviors propel.behavior.symfony_timestampable.class = plugins.sfPropelORMPlugin.lib. Behaviour.SfPropelBehaviorTimestampable Note: A quick "bulk place" on file is enough. Note 2: If you are using sfPropel15Plugin, please upgrade to sfPropelORMPlugin.
Hope it helps!
Comments
Post a Comment