[Fixed] Vendor specific information on column level

0 votes
asked May 20, 2014 in Solved by kufi (290 points)
recategorized Oct 13, 2015 by ludek.vodicka

I can't add vendor specific information on a column level, only on a table level:

I added a custom cfg.xml with the following content:

            <struct name="Field" section="orm" help-text="" help-url="http://propelorm.org/reference/schema.html#column-attributes">
                <ordered name="vendors" help-text="Vendor information. Parameters affect the generated SQL." help-url="http://propelorm.org/reference/schema.html#adding-vendor-info">
                    <struct name="vendor" help-text="Vendor information. Parameters affect the generated SQL." help-url="http://propelorm.org/reference/schema.html#adding-vendor-info">
                        <attribute name="type" type="string" help-text="Vendor information. Parameters affect the generated SQL." />
                        <ordered name="parameters" help-text="Parameters affect the generated SQL." >
                            <struct name="parameter" >
                                <attribute name="name" type="string" help-text="Vendor info type" />
                                <attribute name="value" type="string" help-text="Vendor info value"/>
                            </struct>
                        </ordered>
                    </struct>
                </ordered>
            </struct>

But the output is only the following:

<column name="firstname" type="Varchar" size="32" vendors="##Unknown attribute type##"/>

We need this to set the collation on invidual fields: https://groups.google.com/forum/#!topic/propel-users/NAHeYiYMMgA

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

Thanks for the detailed description. In this case, the structure of the vendors attribute is too complicated to be defined as a custom attribute in the cfg files only. It will require to modify the xslt files as well.

We will fix the transformations and add the vendors attribute to the ORM properties for columns.

1 Answer

0 votes
answered Jun 30, 2014 by Martin Freki Stradej Skipper developer (74,840 points)
selected Jul 30, 2014 by Martin Freki Stradej
 
Best answer

This function was implemented in the version 3.0.0.1099, and released to public today.

From version 3.0, ORM Designer was renamed to Skipper. You can download Skipper from the official website:
www.skipper18.com/en/download

...