Skip to main content
deleted 66 characters in body
Source Link
Kishor Thummar
  • 3k
  • 1
  • 10
  • 18

Not Sure but hope this will work for you.

app/code/Vendor/Module/Model/Critic/DataProvider.php

Changeplease try to load the below linecollection by ResourceModel like instead of codethis

class DataProvider extends\Vendor\Module\Model\CriticFactory \Magento\Ui\DataProvider\AbstractDataProvider$criticFactory

withUse this

class DataProvider extends\Vendor\Module\Model\ResourceModel\Critic\CollectionFactory \Magento\Ui\DataProvider\DataProvider$criticFactory

then run the setup:di:compile and check.

Not Sure but hope this will work for you.

app/code/Vendor/Module/Model/Critic/DataProvider.php

Change the below line of code

class DataProvider extends \Magento\Ui\DataProvider\AbstractDataProvider

with this

class DataProvider extends \Magento\Ui\DataProvider\DataProvider

then run the setup:di:compile and check.

please try to load the collection by ResourceModel like instead of this

\Vendor\Module\Model\CriticFactory $criticFactory

Use this

\Vendor\Module\Model\ResourceModel\Critic\CollectionFactory $criticFactory

then run the setup:di:compile and check.

Source Link
Kishor Thummar
  • 3k
  • 1
  • 10
  • 18

Not Sure but hope this will work for you.

app/code/Vendor/Module/Model/Critic/DataProvider.php

Change the below line of code

class DataProvider extends \Magento\Ui\DataProvider\AbstractDataProvider

with this

class DataProvider extends \Magento\Ui\DataProvider\DataProvider

then run the setup:di:compile and check.