Skip to content

Commit 5681c85

Browse files
author
Marco Bunge
committed
Add alias
1 parent c79a095 commit 5681c85

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/AbstractMapper.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function __construct(Connection $connection, Hydrator $hydrator = null)
7878

7979
$this->doDefine();
8080

81-
$this->gateway = new Gateway($this->connection, $this->getTableName());
81+
$this->gateway = new Gateway($this->connection, $this->getTableName(), $this->getTableNameAlias());
8282
$this->identityMap = $connection->loadIdentityMap($this->getEntityClass());
8383
}
8484

@@ -134,6 +134,14 @@ final public function getTableName()
134134
return $this->tableName;
135135
}
136136

137+
/**
138+
* @return string
139+
*/
140+
final public function getTableNameAlias()
141+
{
142+
return $this->tableNameAlias;
143+
}
144+
137145
/**
138146
* primary key by name
139147
*

0 commit comments

Comments
 (0)