Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | protected function getTable($tableName, $unEscaped = false) |
||
34 | { |
||
35 | $table = $this->container->getParameter('database_table_prefix') . $tableName; |
||
36 | |||
37 | if (self::UN_ESCAPED_TABLE === $unEscaped) { |
||
38 | return $table; |
||
39 | } |
||
40 | |||
41 | // escape table name is handled using " on postgresql |
||
42 | if ('postgresql' === $this->connection->getDatabasePlatform()->getName()) { |
||
43 | return '"' . $table . '"'; |
||
44 | } |
||
45 | |||
46 | // return escaped table |
||
47 | return '`' . $table . '`'; |
||
48 | } |
||
49 | } |
||
50 |