How to get the object with its translation using getRoute in Symfony?
问题 I have several models with translations. When I load $this->tour = $this->getRoute()->getObject(); por example, it gets me the Tour Object. However, it doesn't join to the tour_translation table; so when after i try to get it's title; symfony makes another sql query. How I can override something, so in the Tour model when I ask for the object, it returns me the object with its translation in the current culture. I've been looking at the sfObjectRoute class to see if I can override any method,