Skip to content

Commit 5b3ca26

Browse files
committed
Implemented the call MM to pass through to the connection.
1 parent fe0d868 commit 5b3ca26

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/DB.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ public function __construct($settings){
3535
}
3636
}
3737

38+
public function __call($name, $arguments){
39+
if (method_exists($this->connection, $name)){
40+
return $this->connection->{$name}(...$arguments);
41+
}
42+
}
43+
3844
/**
3945
* Run a select query on the DB.
4046
* @param $q string Query to run.

0 commit comments

Comments
 (0)