if someone should have the same problem in the future, the user ventzy on the symfony forum has found a workaround for the problem:
$articles = ArticleQuery::create() ->useArticleI18nQuery() ->filterByCulture('bg') ->endUse() ->withColumn('ArticleI18n.Title', 'TitleBg') ->filterByProductId(285) ->setFormatter(ModelCriteria::FORMAT_ON_DEMAND) ->find(); foreach ($articles as $article) { echo $article->getId(); echo $article->getTitleBg(); } the discussion is here: http://forum.symfony-project.org/viewtopic.php?f=22&t=31281 On Dec 9, 3:13 pm, Thor <thorste...@gmail.com> wrote: > Hi all, > i have some code that looks as follows: > > $list = ObjQuery::create()->setFormatter(ModelCriteria::ON_DEMAND)- > > >find(); > > That returns me a certain number of objs in a propelcollection. > > If to this code i add the following (for example) > foreach ( $list as $o) > { > echo $o->getId() ." - ". $o->getName($culture); > > } > > i have something like > 1 - first name > 2 - first name > 3 - first name > (etc..) > > it just looks as if the hydration didn't get the correct i18n related > object. > > Do you ever had some similar behavior in your code? do you have some > idea on what could i look to find a solution to this problem? > > thank you very muc -- 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