hi neoomy,
setLocale is to tell the query builder what language you prefer. it does
not prevent language fallback if there is no translation. for that, you
need to cheat a bit: find a field in your Visit document that is
translated, then add a WHERE criteria for the translation.
for example, lets assume there is a $title property that is translated:
WHERE phpcr_locale:it-title IS NOT NULL
for completeness: if you use child translations, the query would be:
INNER JOIN [nt:unstructured] AS c ON ISCHILDNODE(c, u)
...
WHERE
...
AND NAME(c) = 'phpcr_locale:$locale'
> --
> You received this message because you are subscribed to the Google
> Groups "symfony-cmf-devs" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
symfony-cmf-de...@googlegroups.com
> <mailto:
symfony-cmf-de...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.
--
Liip AG // Agile Web Development // T
+41 43 500 39 80
CH-8005 Zurich // PGP 0xA581808B //
www.liip.ch