Issue Bug Rejected

#81972Extbase repositories are always using storage pid of the current controller.

Tymoteusz Motylewski 07/26/17, 12:52 updated 07/28/17, 13:00

Description

When you use extbase repository from different extension, the configured storage pid should be taken from the extension this repository comes from, not from the extension using the repo.
Example:
I have an extension “my_users” with FeUserRepository and persistance.storagePid set in typoscript

Then I want to use this repository in a controller from other extension called “my_registrations”.
my_registrations also have persistance.storagePid set, but to different folder then “my_users” as we want to store registrations in different place than users.

Now, in my controller when you call:

$this->userRepository->findAll();

the query will use storagePids configured in my_registrations instead of ones configured in my_users. And resulting in 0 records found.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.