Skip to content

Commit d8ba0b1

Browse files
committed
Use correct table name in resource model if prefix is configured
1 parent 2add74a commit d8ba0b1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Model/ResourceModel/Tag.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ public function getMaxTagId(int $limit):array
2222
$connection = $this->getConnection();
2323

2424
$subSetSelect = $connection->select()->from(
25-
self::TABLE_NAME,
25+
$this->getTable(self::TABLE_NAME),
2626
['entity_id','tag']
2727
)->order(
28-
'entity_id',
29-
'ASC'
28+
'entity_id ASC'
3029
)->limit(
3130
$limit
3231
);
@@ -44,7 +43,7 @@ public function getUniqueTagsByMaxId(int $maxId):array
4443
$connection = $this->getConnection();
4544

4645
$select = $connection->select()->from(
47-
['main_table' => self::TABLE_NAME],
46+
['main_table' => $this->getTable(self::TABLE_NAME)],
4847
['tag']
4948
)->group(
5049
'tag'

0 commit comments

Comments
 (0)