Bug #81972

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

Added by Tymoteusz Motylewski over 2 years ago. Updated over 2 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-07-26
Due date:
% Done:

0%

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.

History

#1 Updated by Tymoteusz Motylewski over 2 years ago

  • Status changed from New to Rejected

Also available in: Atom PDF