File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,6 +105,10 @@ public function getResourceModel(): ?AbstractDb
105105 {
106106 $ block = $ this ->getComponent ()->getBlock ();
107107 $ resourceModelClass = $ block ->getResourceModel ();
108+ if (empty ($ resourceModelClass )) {
109+ $ resourceModelClass = $ this ->getProviderHandler ()->getResourceModelClass ($ this ->getProvider ());
110+ }
111+
108112 if (empty ($ resourceModelClass )) {
109113 return null ;
110114 }
Original file line number Diff line number Diff line change 1717use Magento \Framework \Model \ResourceModel \Db \AbstractDb as AbstractResourceModel ;
1818use Magento \Framework \DataObject ;
1919use Magento \Framework \ObjectManagerInterface ;
20+ use ReflectionClass ;
2021use ReflectionParameter ;
2122use RuntimeException ;
2223use Loki \AdminComponents \Grid \State as GridState ;
@@ -223,7 +224,7 @@ private function getSearchFilterGroup(GridState $gridState): ?FilterGroup
223224
224225 public function getModelClass (object $ provider ): bool |string
225226 {
226- $ providerReflection = new \ ReflectionClass ($ provider );
227+ $ providerReflection = new ReflectionClass ($ provider );
227228 $ methodReflection = $ providerReflection ->getMethod ('save ' );
228229
229230 /** @var ReflectionParameter $parameter */
You can’t perform that action at this time.
0 commit comments