DoctrineBehaviors
DoctrineBehaviors copied to clipboard
Translatable - Languages as Doctrine Entities
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.
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.
That surprised me too. I am also working on a CMS ... . Maybe you'd like to talk about it... maybe we could work together.
That's why I made my own solution for translations. https://github.com/Warxcell/EntityTranslationsBundle