Actions
Bug #81972
closedExtbase repositories are always using storage pid of the current controller.
Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-07-26
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
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.
Actions