[POC][WIP] PIM-3264: Add code support for filters

for the do better:
Maybe we can assume all repositories we use here will implement ```ReferableEntityRepositoryInterface```. We could add a ``` getIdFromCode`` method to it. That method would return only a scalar to avoid to hydrate the object