Revision ec6a36d9408cf8cf9ff3492b9c6953dd9c283894

Committed on 11/12/2018 5:03 am by André R <andre.romcke@gmail.com> [GitHub Diff]

EZP-29823: Allow to filter Location on translations to not throw when lazy loading Content (#2480)

* Created integration test for lazy-loading Location's not avail. Content

This happens for the use case where Location has been loaded via
SiteAccessAware Repository, but the underlying Content is not available
for the languages specified by the SiteAccess prioritized languages list.

* EZP-29823: [SPI] Add translation filtering on location load, & expose multi get SPI method while at it

* Add useAlwaysAvailable flag on load methods

* [API] Expose useAlwaysAvailable on Location load methods

* Update eZ/Publish/Core/Persistence/Legacy/Content/Location/Gateway/DoctrineDatabase.php

Co-Authored-By: andrerom <andre.romcke@gmail.com>

* Apply suggestions from code review

Co-Authored-By: andrerom <andre.romcke@gmail.com>

* CS

* Cleanup use of generateLanguageMask()

* Unused import

* CS

* CS

* TMP Bulk loading API for loadLocationList

* Revert "Cleanup use of generateLanguageMask()"

This reverts commit dfb56052639684a0a143cb3492ac699ac32e0446.

* Revert "TMP Bulk loading API for loadLocationList"

This reverts commit a9be8aaff3e3efa4fff9e9bfdbe65b2fa12616f7.

* Remove bulk loading locations (to be openened in seperate Pr after this)

* CS

* Pass useAlwaysAvailable argument to buildLocation() as well

Push again to get CI to run.

* Fix own review notes