Use getPropertyPath in autocomplete widget
Currently the AutocompleteController uses
ObjectAccess::getProperty() for retrieving the property that was searched for in the query.
The query is currently flexible enough to support sub-properties to be searched. An example: if you have a User object you could configure an autocomplete widget that searches for
name.fullName. The query will execute that search without problems and find the users.
But as soon as the results are build the widget crashes because it can not access the property.
A simple fix that should not cause any side effects would be to use