My question is already listed in the topic. I’d like to explain why I would like to have this feature with a simplified example. I am developing a multilingual website, and some entities are containing fields like:
name_en name_fr name_xx The number of languages is not big, so there is no need to keep translations in separate tables and make complicated requests. The best thing for me would be having methods like getName() inside entity objects that would return values depending on the current locale. The locale can be simply retrieved in case the entity object has an access to the container object. Is it possible to inject the container object into the Entity or the only solution is to pass the locale into such a function each time it is called (e.g. getName($locale))? Does anyone have ideas about alternative workarounds? Many thanks Alex -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en