Skip to content

Commit be9e80c

Browse files
authored
Merge pull request #9 from Bit-Apps-Pro/fix/get-prefix
fix: `getPrefix()` method doesn't exist in Model class
2 parents 1954878 + 5267a64 commit be9e80c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Model.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,11 @@ public function getTable()
272272
return $this->table;
273273
}
274274

275+
public function getPrefix()
276+
{
277+
return $this->prefix === '' ? Connection::getPrefix() : $this->prefix;
278+
}
279+
275280
public function getTableWithoutPrefix()
276281
{
277282
return $this->_tableWithoutPrefix;

0 commit comments

Comments
 (0)