Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 402 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 402 Revision 621
Zeile 78... Zeile 78...
78
        $dispatcher = $connection->getEventDispatcher();
78
        $dispatcher = $connection->getEventDispatcher();
Zeile 79... Zeile 79...
79
 
79
 
Zeile 80... Zeile 80...
80
        $connection->unsetEventDispatcher();
80
        $connection->unsetEventDispatcher();
-
 
81
 
-
 
82
        collect(static::$allTables[$name] ??= $connection->getDoctrineSchemaManager()->listTableNames())
-
 
83
            ->when(
81
 
84
                property_exists($this, 'tablesToTruncate'),
-
 
85
                fn ($tables) => $tables->intersect($this->tablesToTruncate),
82
        collect(static::$allTables[$name] ??= $connection->getDoctrineSchemaManager()->listTableNames())
86
                fn ($tables) => $tables->diff($this->exceptTables($name))
83
            ->diff($this->exceptTables($name))
87
            )
Zeile 84... Zeile 88...
84
            ->filter(fn ($table) => $connection->table($table)->exists())
88
            ->filter(fn ($table) => $connection->table($table)->exists())
85
            ->each(fn ($table) => $connection->table($table)->truncate());
89
            ->each(fn ($table) => $connection->table($table)->truncate());