Loading src/UnicaenFaq/Service/FaqService.php +7 −7 Original line number Diff line number Diff line Loading @@ -42,13 +42,13 @@ class FaqService implements EntityManagerAwareInterface */ public function checkSchema() { $tableName = $this->entityManager->getClassMetadata($this->faqEntityClass)->getTableName(); $q = "select count(*) from ALL_TABLES where UPPER(TABLE_NAME) = UPPER(:tablename)"; $s = $this->entityManager->getConnection()->executeQuery($q, ['tablename' => $tableName]); $count = (int) $s->fetchColumn(0); if ($count === 0) { throw new LogicException("La table $tableName est introuvable"); } // $tableName = $this->entityManager->getClassMetadata($this->faqEntityClass)->getTableName(); // $q = "select count(*) from ALL_TABLES where UPPER(TABLE_NAME) = UPPER(:tablename)"; // $s = $this->entityManager->getConnection()->executeQuery($q, ['tablename' => $tableName]); // $count = (int) $s->fetchColumn(0); // if ($count === 0) { // throw new LogicException("La table $tableName est introuvable"); // } } /** Loading Loading
src/UnicaenFaq/Service/FaqService.php +7 −7 Original line number Diff line number Diff line Loading @@ -42,13 +42,13 @@ class FaqService implements EntityManagerAwareInterface */ public function checkSchema() { $tableName = $this->entityManager->getClassMetadata($this->faqEntityClass)->getTableName(); $q = "select count(*) from ALL_TABLES where UPPER(TABLE_NAME) = UPPER(:tablename)"; $s = $this->entityManager->getConnection()->executeQuery($q, ['tablename' => $tableName]); $count = (int) $s->fetchColumn(0); if ($count === 0) { throw new LogicException("La table $tableName est introuvable"); } // $tableName = $this->entityManager->getClassMetadata($this->faqEntityClass)->getTableName(); // $q = "select count(*) from ALL_TABLES where UPPER(TABLE_NAME) = UPPER(:tablename)"; // $s = $this->entityManager->getConnection()->executeQuery($q, ['tablename' => $tableName]); // $count = (int) $s->fetchColumn(0); // if ($count === 0) { // throw new LogicException("La table $tableName est introuvable"); // } } /** Loading