I am trying to do translations. And what I want to do is to have e.g. models like this:
Country
CountryTranslation
Product
ProductTranslation
In Translation models I got field "locale". Is there a way that if model contains field "locale", then add extra condition "AND locale='en'", so it would work dynamically, instead of for every "find" writing condition with "locale"?
I know that there in Doctrine 2 there is something what can be used to do this and it is called filter.