[Closed] Gedmo extensions duplicated on import

0 votes
asked Jul 11, 2016 in Solved by PaddyLock (310 points)
recategorized Oct 5, 2016 by ludek.vodicka

Hi, if I re-import doctrine entities into an existing project, all the doctrine extension information is duplicated. The reason I need to do this is that i am implementing Translatable and I don't seem to be able to create a non field property of an entity so that I can assign the 'Locale' property to it. So I have to manually create the locale property on the entity and then re-import it.

1 Answer

0 votes
answered Jul 11, 2016 by ludek.vodicka Skipper developer (140,450 points)

Hi,

Regarding re-import. Such feature isn't officially supported. Although Skipper usually imports it correctly there are situations when it's not possible import it 100% correctly. And what you're describing is exactly the situation when it's not possible to decide whether to merge or add second behavior.

But to your original problem with Locale. You should be able to write any other field (also non-orm) to this property and after this Skipper should export it to your Php file. Although this feature is somewhere between ORM and non-ORM area, we have some internal hacks to allow users to use non-ORM fields in such situations.

Ludek

...