user4417837
user4417837

Reputation:

Extbase repository findAll() returns nothing

The findAll() finds nothing in my repository in a Method in my FE but it works in my BE.

public function showAction() {
    $p = $this->modulRepository->findAll();
    $this->view->assign('pruefling',$p);
}

I tried to add

plugin.tx_rere.persistence.storagePid = 4

to my TypoScript Setup -> extbase repository findAll() returns result null. The table is not empty.

But it still does not work.

Upvotes: 1

Views: 1210

Answers (1)

Aswathy S
Aswathy S

Reputation: 729

It happens because of not giving the exact storage pid:

plugin.tx_urpluggin.persistence.storagePid = 4

To know whether you give the correct storage pid:

  1. Go to Templatemodule
  2. Select root template
  3. Select typoscript object browser from top dropdown
  4. Check the configurations in your plugin

If the storage pid is empty then click on that you will get a typoscript. Paste this into your main template.

Upvotes: 1

Related Questions