the proper way would be to get the locale via the ClassMetadata.

``
if ($class->localeMapping) {
    $childrenHints = array('locale' => $class->reflFields[$class->localeMapping]->getValue($document));
} else {
``