migrations/Doctrine/Version000900.php
private function hasLayouts(): bool
    {
        $queryBuilder = $this->connection->createQueryBuilder();
        $queryBuilder->select('COUNT(id) as count')
            ->from('ngbm_layout');

        $result = $queryBuilder->execute()->fetchAll(PDO::FETCH_ASSOC);

        return (int) $result[0]['count'] > 0;
    }
private function hasLayouts(): bool
    {
        $queryBuilder = $this->connection->createQueryBuilder();
        $queryBuilder->select('COUNT(id) as count')
            ->from('ngbm_layout');

        $result = $queryBuilder->execute()->fetchAll(PDO::FETCH_ASSOC);

        return (int) $result[0]['count'] > 0;
    }
private function hasLayouts ( ) : bool { $ queryBuilder = $ this -> connection -> createQueryBuilder ( ) ; $ queryBuilder -> select ( 'COUNT(id) as count' ) -> from ( 'ngbm_layout' ) ; $ result = $ queryBuilder -> execute ( ) -> fetchAll ( PDO :: FETCH_ASSOC ) ; return ( int ) $ result [ 0 ] [ 'count' ] > 0 ; }
Returns if the database already contains some layouts.
Returns if the database already contains some layouts .