src/Utility/Utils.php
/**
     * Drop & Update database schema
     *
     * @return void
     */
Drop & Update database schema
@return void
Drop & Update database schema @return void
public static function updateSchema(): void
    {
        try {
            $e_manager = self::getEntityManager();
            $metadata = $e_manager->getMetadataFactory()->getAllMetadata();
            $sch_tool = new SchemaTool($e_manager);
            $sch_tool->dropDatabase();
            $sch_tool->updateSchema($metadata, false);
        } catch (\Throwable $e) {
            fwrite(
                STDERR,
                'EXCEPCIÓN: ' . $e->getCode() . ' - ' . $e->getMessage()
            );
            exit(1);
        }
    }
public static function updateSchema ( ) : void { try { $ e_manager = self :: getEntityManager ( ) ; $ metadata = $ e_manager -> getMetadataFactory ( ) -> getAllMetadata ( ) ; $ sch_tool = new SchemaTool ( $ e_manager ) ; $ sch_tool -> dropDatabase ( ) ; $ sch_tool -> updateSchema ( $ metadata , false ) ; } catch ( \ Throwable $ e ) { fwrite ( STDERR , 'EXCEPCIÓN: '  e - >g etCode( )  - '  e - >g etMessage( ) ) ; exit ( 1 ) ; } }
Drop & Update database schema
 @return void
Drop & Update database schema @return void