public function initSchemas() { if ($this->nbSchemas == 0) { $this->schemas = $this->massRetriever->getSchemas(); $this->nbSchemas = count($this->schemas); $this->searchPath = $this->massRetriever->getSearchPath(); } }
private function getSchemaList() { if (count($this->schemas) == 0) { $pgMassRetriever = new PgMassRetriever($this->doctrine, $this->logger); $this->schemas = $pgMassRetriever->getSchemas(); } $schemaList = ['all' => 'All']; foreach ($this->schemas as $name => $schema) { $schemaList[$name] = $name; } return $schemaList; }