For future reference:
after doublechecking the documentation, the generated base classes and
some googling, I was sure Propel had no support for this, so I created
my own doSelectJoinAllWithI18n() peer method, by using some common
sense and combining the ~JoinAll() and ~WithI18n() functions. The
monster is around 120 lines long and joins 5 tables altogether, but
now my frontpage only need 3 queries.

Gábor

On jún. 22, 00:04, Gábor Fási <[email protected]> wrote:
> Hello,
>
> I'm creating a site that is available in multiple languages. I'm to
> create a news section now, with Propel's I18N support handling the
> translations was a bliss, but I have some foreign references in the
> news table, like the author or the category.
> Right now the choice is: use the doSelectWithI18n() peer method, or
> use doSelectJoinAll(), but neither of them is good enough. The i18n
> one results in 26 queries, the other one only needs 16, but even 3
> could be enough, if I had something like doSelectJoinAllWithI18n(),
> which I don't.
> I wouldn't like to write custom hydration if there was some other way,
> but right now I don't see any. Am I missing something? I believe this
> would be a kinda common need.
>
> Gábor
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to