File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
app/code/Magento/MediaGallery/Model Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -67,10 +67,11 @@ public function execute(int $assetId): array
67
67
{
68
68
try {
69
69
$ connection = $ this ->resourceConnection ->getConnection ();
70
+ $ tableAssetKeyword = $ this ->resourceConnection ->getTableName (self ::TABLE_ASSET_KEYWORD );
70
71
71
72
$ select = $ connection ->select ()
72
73
->from (['k ' => $ this ->resourceConnection ->getTableName (self ::TABLE_KEYWORD )])
73
- ->join (['ak ' => self :: TABLE_ASSET_KEYWORD ], 'k.id = ak.keyword_id ' )
74
+ ->join (['ak ' => $ tableAssetKeyword ], 'k.id = ak.keyword_id ' )
74
75
->where ('ak.asset_id = ? ' , $ assetId );
75
76
$ data = $ connection ->query ($ select )->fetchAll ();
76
77
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ private function getKeywordsData(array $assetIds): array
87
87
$ connection = $ this ->resourceConnection ->getConnection ();
88
88
$ select = $ connection ->select ()
89
89
->from (['k ' => $ this ->resourceConnection ->getTableName (self ::TABLE_KEYWORD )])
90
- ->join (['ak ' => self ::TABLE_ASSET_KEYWORD ], 'k.id = ak.keyword_id ' )
90
+ ->join (['ak ' => $ this -> resourceConnection -> getTableName ( self ::TABLE_ASSET_KEYWORD ) ], 'k.id = ak.keyword_id ' )
91
91
->where ('ak.asset_id IN (?) ' , $ assetIds );
92
92
return $ connection ->query ($ select )->fetchAll ();
93
93
}
You can’t perform that action at this time.
0 commit comments