| @@ 97-112 (lines=16) @@ | ||
| 94 | * |
|
| 95 | * @return array |
|
| 96 | */ |
|
| 97 | protected function getTableList() |
|
| 98 | { |
|
| 99 | if ($this->tableList === null) { |
|
| 100 | $this->tableList = array(); |
|
| 101 | $SchemaManager = $this->app['orm.em']->getConnection()->getSchemaManager(); |
|
| 102 | foreach ($SchemaManager->listTables() as $Table) { |
|
| 103 | $tableName = $Table->getName(); |
|
| 104 | if (strpos($tableName, self::PLUGIN_PREFIX) !== 0) { |
|
| 105 | continue; |
|
| 106 | } |
|
| 107 | $this->tableList[$tableName] = $tableName; |
|
| 108 | } |
|
| 109 | } |
|
| 110 | ||
| 111 | return $this->tableList; |
|
| 112 | } |
|
| 113 | ||
| 114 | protected function start() |
|
| 115 | { |
|
| @@ 184-199 (lines=16) @@ | ||
| 181 | ); |
|
| 182 | } |
|
| 183 | ||
| 184 | private function getTableList() |
|
| 185 | { |
|
| 186 | if ($this->tableList === null) { |
|
| 187 | $this->tableList = array(); |
|
| 188 | $SchemaManager = $this->app['orm.em']->getConnection()->getSchemaManager(); |
|
| 189 | foreach ($SchemaManager->listTables() as $Table) { |
|
| 190 | $tableName = $Table->getName(); |
|
| 191 | if (strpos($tableName, self::PLUGIN_PREFIX) !== 0) { |
|
| 192 | continue; |
|
| 193 | } |
|
| 194 | $this->tableList[$tableName] = $tableName; |
|
| 195 | } |
|
| 196 | } |
|
| 197 | ||
| 198 | return $this->tableList; |
|
| 199 | } |
|
| 200 | ||
| 201 | private function getPluginList() |
|
| 202 | { |
|