Skip to content

Commit 49a1cc7

Browse files
author
Marco Bunge
committed
Create gateway from connection
1 parent 549ce87 commit 49a1cc7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Connection.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ public function createUnitOfWork(){
6161
return new UnitOfWork($this);
6262
}
6363

64+
/**
65+
* @param $table
66+
* @param null $alias
67+
* @return Gateway
68+
*/
69+
public function createGateway($table, $alias = null){
70+
return new Gateway($this, $table, $alias);
71+
}
72+
6473
/**
6574
* @return MapperLocator
6675
*/

0 commit comments

Comments
 (0)