This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

day 4 converting from xml to yml

Discussion around this tutorial for symfony 1.0.x

day 4 converting from xml to yml

by yaziderman » Sun Feb 24, 2008 10:06 am

HI ALL
How can i convert this code from XML to YML

Code: Select all
<column name="stripped_title" type="varchar" size="255" />
<unique name="unique_stripped_title">
  <unique-column name="stripped_title" />
</unique>


and just for knowledge, can you mention the alternatives used to do so.
Thank you.
yaziderman
Junior Member
 
Posts: 18
Joined: Wed Feb 13, 2008 5:58 pm
Location: palestine,jordan

Re: day 4 converting from xml to yml

by halfer » Mon Feb 25, 2008 6:46 pm

If you type "symfony" at the command line, it will list a number of tasks, two of which are used to convert schemas between XML and YML (although they will only do a whole schema at a time, rather than snippets).
halfer
Faithful Member
 
Posts: 10148
Joined: Mon Jan 30, 2006 1:16 pm
Location: West Midlands, UK

Re: day 4 converting from xml to yml

by yaziderman » Tue Feb 26, 2008 8:43 pm

Thank you very much
yaziderman
Junior Member
 
Posts: 18
Joined: Wed Feb 13, 2008 5:58 pm
Location: palestine,jordan

Re: day 4 converting from xml to yml

by crazylobster » Tue Jan 05, 2010 8:36 pm

hey there,

i got the same problem. i need to convert xml to yml or/and the other way around.
how does that work, where do i find the commands?

i'm using symfony 1.4.

thanks
crazylobster
Junior Member
 
Posts: 2
Joined: Tue Jan 05, 2010 3:40 pm
Location: K-Town

Re: day 4 converting from xml to yml

by halfer » Wed Jan 06, 2010 12:09 pm

I don't use 1.3/1.4, so can't help you there - but you could check the reference guide, which might detail it. But personally I would just list all the commands as previously detailed, and determine which one sounds correct.

In Symfony 1.0, the Propel commands are:

Code: Select all
propel-convert-xml-schema
propel-convert-yml-schema
halfer
Faithful Member
 
Posts: 10148
Joined: Mon Jan 30, 2006 1:16 pm
Location: West Midlands, UK

Re: day 4 converting from xml to yml

by crazylobster » Sat Jan 09, 2010 8:28 pm

when i type "php symfony" to list all the commands, i don't find anything useful. or do you mean a different way?
i can't find anything in the reference book eitherw hich is weird because converting seems to work in v1.0...
crazylobster
Junior Member
 
Posts: 2
Joined: Tue Jan 05, 2010 3:40 pm
Location: K-Town