We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5681c85 commit db8ff50Copy full SHA for db8ff50
src/Gateway.php
@@ -37,7 +37,10 @@ final class Gateway
37
public function __construct(Connection $connection, $table, $alias = null)
38
{
39
$this->connection = $connection;
40
- $this->table = $table;
+ $prefix = $connection->getPrefix();
41
+
42
+ // add prefix and reset prefix if prefix already set
43
+ $this->table = $prefix . ltrim($table, $prefix);
44
$this->alias = $alias;
45
}
46
0 commit comments