[fixed] Entity templates doesn't work with the last update

0 votes
asked May 8, 2015 in Solved by iavansis.miguel (320 points)
recategorized May 22, 2015 by ludek.vodicka

Hi,

I got a dangerous bug with the last update (2.3.0.1215, Linux). I got the following template that was working ok before the last update.
Now, when I save an entity, It loses it's name and position.

<skipper-configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<orm-configuration name="Doctrine2">
    <element-templates>
        <!-- Module export naming -->
        <template element='module' use-case='create'>
            <module>
                <orm-attributes>
                    <attribute name="file-suffix">without-suffix</attribute>
                    <attribute name="filename-format">entity-name-only</attribute>
                </orm-attributes>
            </module>
        </template>
        <!-- Entity table naming & Repository Class -->
        <template element='entity' use-case='update'>
            <entity>
                <orm-attributes>
                    <attribute name="table">oc_{entity#UL}</attribute>
                    <attribute name="repository-class">Oc\AppBundle\Entity\Repository\{entity#CFU}Repository</attribute>
                </orm-attributes>
            </entity>
        </template>
        <!-- Field column naming -->
        <template element="field" use-case="update">
            <field>
                <orm-attributes>
                    <attribute name="column">{field#UL}</attribute>
                </orm-attributes>
            </field>
        </template>
        <!-- Many to Many Naming -->
        <template element='many-to-many' use-case='create'>
            <many-to-many caption="{entity-inverse#CFU} has {entity-owner#CFU}s" mn-entity="{entity-inverse#CFU}{entity-owner#CFU}">
                <many-to-many-entity owning-side="true" alias="{entity-owner#CFL}s"/>
                <many-to-many-entity owning-side="false" alias="{entity-inverse#CFL}s"/>
            </many-to-many>
        </template>
    </element-templates>
</orm-configuration>

2 Answers

0 votes
answered May 8, 2015 by ludek.vodicka Skipper developer (140,450 points)
selected May 11, 2015 by iavansis.miguel
 
Best answer

Bug is fixed in latest beta: http://support.skipper18.com/402/downloads-skipper-beta

Please test it and let me know.

commented May 11, 2015 by iavansis.miguel (320 points)

Thanks!

commented May 11, 2015 by iavansis.miguel (320 points)

Hi!

The entities still loose their position on save.

commented May 11, 2015 by ludek.vodicka Skipper developer (140,450 points)

Hi, can you please describe more in details how to replicate this issue? Some screencast video would be great.

commented May 11, 2015 by ludek.vodicka Skipper developer (140,450 points)

And which version are you trying? 3.2.0.1219? http://www.skipper18.com/en/download

0 votes
answered May 8, 2015 by ludek.vodicka Skipper developer (140,450 points)
reshown May 8, 2015 by ludek.vodicka

Thanks for report. We're able to replicate it here. I will let you know when fix will be ready

...