DoctrineBehaviors icon indicating copy to clipboard operation
DoctrineBehaviors copied to clipboard

Translatable - Languages as Doctrine Entities

Open MichaelBrauner opened this issue 2 years ago • 3 comments

I've been wondering for a while about introducing entities in Translatable as a second option.

All software I know that is written with symfony uses languages ​​as entities.

For example, if I'm writing a CRM system, it's very likely that my languages ​​should be entities. So I can then also delete any content that is associated with a language very easy. And users can add new languages ​​to the system. Languages can then have fields ​​(e.g. isRtl()) and so on.

What do you think about it? I would be very interested in your opinion.

MichaelBrauner avatar Apr 28 '22 17:04 MichaelBrauner

Kinda surprised this hasn't been requested before, as it seems to be a fairly common scenario.

Currently working on a CMS, and being able to associate translations to my Locale entity would be a life-saver.

I'm also very interested in any way this could be achieved. Ideas, workarounds & alternative solutions are all welcome.

jzecca avatar Aug 11 '22 17:08 jzecca

That surprised me too. I am also working on a CMS ... . Maybe you'd like to talk about it... maybe we could work together.

MichaelBrauner avatar Aug 11 '22 17:08 MichaelBrauner

That's why I made my own solution for translations. https://github.com/Warxcell/EntityTranslationsBundle

Warxcell avatar Dec 28 '23 21:12 Warxcell