David Buchmann
David Buchmann
or temporarily setting the locale on the locale chooser right before executing the query, then restoring the previous once the query is executed.
the only other option i see would be to remove the possiblility to specify the locale in the query builder. that would be more consistent with the rest. then we...
@lsmith77 we discussed the nameHint quite a bit a while ago. did we in the end see where in the annotations we could place it? it could be on the...
one thing i am not yet sure how we really should do it is that we halfway allow a document to have no id mapped. for the parent+autoname or parent+name...
other doctrines seem to have custom id generators. that would be the most elegant for your use case, i think. what is already possible is using the repository strategy, which...
i fear you mixed up the phpcr-odm query builder and the phpcr query builder, could that be? on phpcr level, there is indeed nothing with locales. - there is `createPhpcrQueryBuilder()`...
ok, sorry. then that sounds like a bug, or a feature that we thought of but in the end did not finish to implement. glad if you can provide a...
can you open a WIP pull request that we can comment on? i think we should wrap `$this->dm->getDocumentsByPhpcrQuery($this->query, $this->documentClass, $this->primaryAlias);` into a try-catch and change the default locale while fetching...
yeah, i see that this is not exactly elegant. maybe the getDocumentsByPhpcrQuery could pass around a locale? the document manager has findTranslation, this should be all that is needed. findTranslation...