private function checksSectionTable()
    {
        $schemaManager = $this->em->getConnection()->getSchemaManager();
        $tableName = $this->em->getClassMetadata('BackBee\NestedNode\Section')->getTableName();

        $this->output->write(sprintf(' - New table `%s` - ', $tableName));

        if (true === $this->overrideExisting) {
            $this->output->writeln('<comment>Skipped</comment> (--force option set)');
            return $this;
        }

        if (true === $schemaManager->tablesExist([$tableName])) {
            $this->output->writeln("<error>Failed</error>");
            throw new BBException(sprintf('Table `%s` already exists, please use --force option to override it.', $tableName));
        }

        $this->output->writeln('<info>OK</info>');
        return $this;
    }
private function checksSectionTable()
    {
        $schemaManager = $this->em->getConnection()->getSchemaManager();
        $tableName = $this->em->getClassMetadata('BackBee\NestedNode\Section')->getTableName();

        $this->output->write(sprintf(' - New table `%s` - ', $tableName));

        if (true === $this->overrideExisting) {
            $this->output->writeln('<comment>Skipped</comment> (--force option set)');
            return $this;
        }

        if (true === $schemaManager->tablesExist([$tableName])) {
            $this->output->writeln("<error>Failed</error>");
            throw new BBException(sprintf('Table `%s` already exists, please use --force option to override it.', $tableName));
        }

        $this->output->writeln('<info>OK</info>');
        return $this;
    }
private function checksSectionTable ( ) { $ schemaManager = $ this -> em -> getConnection ( ) -> getSchemaManager ( ) ; $ tableName = $ this -> em -> getClassMetadata ( 'BackBee\NestedNode\Section' ) -> getTableName ( ) ; $ this -> output -> write ( sprintf ( ' - New table `%s` - ' , $ tableName ) ) ; if ( true === $ this -> overrideExisting ) { $ this -> output -> writeln ( '<comment>Skipped</comment> (--force option set)' ) ; return $ this ; } if ( true === $ schemaManager -> tablesExist ( [ $ tableName ] ) ) { $ this -> output -> writeln ( "<error>Failed</error>" ) ; throw new BBException ( sprintf ( 'Table `%s` already exists, please use --force option to override it.' , $ tableName ) ) ; } $ this -> output -> writeln ( '<info>OK</info>' ) ; return $ this ; }
Checks for existing table `section`, throw exception if overrideExisting is set to FALSE

@return \BackBee\Console\Command\UpgradeToPageSectionCommand
@throws BBException                                              Raises if table `section` already exists
Checks for existing table section throw exception if overrideExisting is set to FALSE