0 votes


I am working on a custom configuration file so I can add Doctrine2 extensions in ORM Designer 2. I am almost done, but there is some strange behaviour.

This is my custom Doctrine2.ormd2.cfg.xml (only relevant parts are shown)

<ormd2-configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <orm-configuration name="Doctrine2">
        <struct name="Field">
            <ordered name="gedmo" help-text="Doctrine2 behavioral extensions - Possible string values: sortablePosition, sortableGroup, translatable, treeLeft, treeRight, treeRoot, treeLevel" type="string"></ordered>    

        <struct name="Association">
            <struct name="side-owning" help-text="Properties of owning relation">
                <ordered name="gedmo" help-text="Doctrine2 behavioral extensions - Possible values: treeParent" type="string"></ordered>



The first problem is that I need enums instead of strings. But for some reason, when I do:

<ordered name="gedmo" help-text="Doctrine2 behavioral extensions" type="enum" enum-values="sortablePosition|sortableGroup|translatable|treeLeft|treeRight|treeRoot|treeLevel"></ordered>

.. the dropdown in the ORM Designer 2 GUI stays empty. That could be a bug. Anyway, let's use a string type instead.

This is my configuration (just a test with dummy values):
enter image description here

enter image description here

Now, let's export it to YAML.

  type: entity
  table: slideshow_item
      id: true
        strategy: AUTO
      nullable: false
      gedmo: [foo,bar]          <-- this is good
      gedmo:                    <-- ?
        value: foo              <-- ?
        value: bar              <-- ?
      nullable: true
      nullable: true
      nullable: false
      nullable: true
      targetEntity: Serius\PhotoBundle\Entity\SlideshowItem
      mappedBy: fooAlias
      targetEntity: Serius\PhotoBundle\Entity\SlideshowItem
      inversedBy: barAlias
      gedmo: [foo,bar]                    <-- good
          referencedColumnName: id
          nullable: false

Do you see? Looks like the inside the Field is exported different than inside the Association.

So, what may be bugs:

  1. Ordered lists with enum types are not supported? If not, can you show an example?
  2. Ordered lists are not always well exported.

N.B. I will share my configuration soon, on the ORM Designer forums.

in Solved by (250 points)
recategorized by

Thanks for detailed bug report. We will check it.

2 Answers

0 votes
Best answer

The custom attribute creation was modified and updated in the version, and released to public today. Please, try the behavior now, and let me know if you still had any problems with this configuration.

From version 3.0, ORM Designer was renamed to Skipper. You can download Skipper from the official website:

by Skipper developer (74.8k points)
selected by
0 votes

Starting with version Skipper fully supports Gedmo extensions.

Currently support is in beta stage.

More info http://support.skipper18.com/2290/gedmo-extensions-beta-support

by Skipper developer (141k points)