[SOLVED] Propel, Symfony 1.4 porject ignores behaviors on export

0 votes
asked Apr 11, 2014 in Solved by agusquiroga (200 points)
recategorized May 5, 2014 by Martin Freki Stradej

I´m exporting ORM definitions (yml format by default is selected by the program) in yml and the sortable behavior is ignored on export, is defined in the design in the program, but not included in the YML file.
Tried changing the format to XML on the Boundle properties, and the behaviors where included in the XML exported file.
Having behaviors included in the YML file is important becouse symfony and propel don´t keep relation between XML and YML definitions and is a common thing to have various YML definitions. So using XML export format is not a solution.
Regards.

commented Apr 11, 2014 by Martin Freki Stradej Skipper developer (74,840 points)

Thank you for bringing it up. We were discussing this just yesterday, but I was not able to find reliable reference material for the YAML format.

Please, send me links to documentation, or some examples how each behavior should look like when exported to YAML and we will add it as soon as possible.

If you have some custom behaviors that are useful for you, send me the reference for XML and YAML and we will add it too.

commented Apr 11, 2014 by agusquiroga (200 points)

Thanks for you reply.
Here's a project where you can see the bug. If you set the package export format to xml the output is correct, but in yml format the behaviors are not present.

https://anonfiles.com/file/5d4e65c83f17dfb6fbec8246ed5bcf75

commented Apr 11, 2014 by ludek.vodicka Skipper developer (140,450 points)

Hi, thanks for the sample project. Unfortunately we would need some sample how to correctly define behaviors in the YML file. We tried to search it but without luck.

Could you please share some of your schema file where we can see the correct form of YML file with behaviors? Or any link to documentation. Thanks!

commented Apr 11, 2014 by agusquiroga (200 points)

You can find the YML documentation in the plugin project page: https://github.com/propelorm/sfPropelORMPlugin/blob/master/doc/schema.md

Thanks.

commented Apr 11, 2014 by ludek.vodicka Skipper developer (140,450 points)

Perfect, thanks!

commented Apr 22, 2014 by agusquiroga (200 points)

There´s a planned date for a release that fixes this issue?
Regards,

commented Apr 23, 2014 by Martin Freki Stradej Skipper developer (74,840 points)

The version with these fixes is being prepared for release right now, it may take several hours before it is all published. I will let you know when you can download the new version.

1 Answer

0 votes
answered Apr 24, 2014 by Martin Freki Stradej Skipper developer (74,840 points)
selected May 1, 2014 by agusquiroga
 
Best answer

Version with fix for the missing behaviors is now available for download in our Beta section:
http://support.orm-designer.com/402/downloads-orm-designer2-beta

Please, check if all exports correspond with the Propel convention and let me know the results.

commented May 1, 2014 by agusquiroga (200 points)

Great! Downloading as i type... thanks.

commented May 5, 2014 by Martin Freki Stradej Skipper developer (74,840 points)

Thank you, let me know about anything else you find.

commented May 5, 2014 by agusquiroga (200 points)

The problem is solved in the beta. Congrats!

...