This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » legacy support » symfony 1.0 » Can't use propel-build-model with Symfony 1.0
Can't use propel-build-model with Symfony 1.0 [message #18034] Sun, 17 December 2006 09:16 Go to next message
Aergonaut  is currently offline Aergonaut
Messages: 21
Registered: December 2006
Junior Member
I installed Symfony 1.0 earlier today and got through writing my schema.yml and converting it to XML. Then I tried to build the object model with the symfony command. Everything seemed to go fine and it showed "BUILD FINISHED" at the end, but when I looked to make sure that the files were all generated correctly, the data/model directory was empty.

I looked back at the output in my command line and found this at the end:

Execution of target "om-template" failed for the following reason: C:\xampplite\php\pear\symfony\vendor\propel-generator\build-propel.xml:436:1: Duplicate table found: propel
[phingcall] C:\xampplite\php\pear\symfony\vendor\propel-generator\build-propel.xml:436:1: Duplicate table found: propel


Any ideas as to what's going wrong would be appreciated! If this has been discussed already, I'm sorry for reposting.

[Updated on: Sun, 17 December 2006 09:17]

Re: Can't use propel-build-model with Symfony 1.0 [message #21344 is a reply to message #18034 ] Fri, 09 February 2007 18:05 Go to previous messageGo to next message
blizzard-media  is currently offline blizzard-media
Messages: 62
Registered: May 2006
Member
I get this same error as well with 1.0.0rc2 using the sfGuard plugin. Any ideas?

--snip
propel > om-template:
[propel-om] Target database type: mysql
[propel-om] Target package: lib.model
[propel-om] Using template path: /usr/share/php/symfony/vendor/propel-generator/templates
[propel-om] Output directory: /home/rickyn/www/symfony/gaperformancegraphics
[propel-om] Processing: generated-schema.xml
[propel-om] Processing: generated-generated-sfGuardPlugin-schema.xml
[propel-om] Processing: generated-sfGuardPlugin-schema.xml
Execution of target "om-template" failed for the following reason: /usr/share/php/symfony/vendor/propel-generator/build-propel.xml:436:1: Duplicate table found: propel.
[phingcall] /usr/share/php/symfony/vendor/propel-generator/build-propel.xml:436:1: Duplicate table found: propel.

BUILD FINISHED


We provide Symfony hosting:
http://www.blizzard-media.com/
Re: Can't use propel-build-model with Symfony 1.0 [message #21356 is a reply to message #18034 ] Sat, 10 February 2007 00:31 Go to previous messageGo to next message
blizzard-media  is currently offline blizzard-media
Messages: 62
Registered: May 2006
Member
Well I hope you find the answer to your problem, I found the answer to mine by removing everything out of:

plugins/sfGuardPlugin/config/

except for:

config.php
sfGuardPlugin-schema.yml

It seems the other schema's were being treated as duplicates by the "symfony propel-build-model" command.


We provide Symfony hosting:
http://www.blizzard-media.com/
Re: Can't use propel-build-model with Symfony 1.0 [message #21388 is a reply to message #21356 ] Sat, 10 February 2007 23:56 Go to previous messageGo to next message
qube  is currently offline qube
Messages: 88
Registered: August 2006
Location: Czech republic
Member
I had the same problem (Symfony 1.0rc2, sfGuardPlugin 1.1.6).

I created topic with solution in plugin section of this forum:
http://www.symfony-project.com/forum/index.php/t/4990/
Re: Can't use propel-build-model with Symfony 1.0 [message #76086 is a reply to message #21388 ] Wed, 01 April 2009 21:39 Go to previous messageGo to next message
skywalker  is currently offline skywalker
Messages: 334
Registered: March 2008
Location: Norway
Faithful Member
I also got this problem today. And I'm not using sfGuardPlugin.

I managed to do a 'symfony propel-build-model' several times. But suddenly it stopped working with the error message:

[propel-om] Processing: generated-race-schema.xml
[propel-om] Could not perform XLST transformation.  Make sure PHP has been compiled/configured to support XSLT.
Execution of target "om-template" failed for the following reason: /usr/local/lib/php/symfony/vendor/propel-generator/build-propel.xml:470:1: Duplicate table found: propel.
[phingcall] /usr/local/lib/php/symfony/vendor/propel-generator/build-propel.xml:470:1: Duplicate table found: propel.


The config files has not been changed. I have also done 'symfony cc' without any help.


May the source be with you
Re: Can't use propel-build-model with Symfony 1.0 [message #76101 is a reply to message #76086 ] Thu, 02 April 2009 07:56 Go to previous message
skywalker  is currently offline skywalker
Messages: 334
Registered: March 2008
Location: Norway
Faithful Member
I solved this today. I found a schema.yml file in the config directory, which contained all the lines from my xxx-schema.yml files. By removing this it worked OK.

I'm not sure what I did last night, but I guess I have used a command that created the schema.yml file... Embarassed


May the source be with you
Previous Topic:1.0 generate command
Next Topic:Production - Not updating Partials
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software