Skip to content

Deprecations are swallowed when running commands with Application #955

@Kern046

Description

@Kern046

Hello, I'm trying to setup Foundry in my Symfony project to enjoy your amazing work !

I face an issue when using the ResetDatabase trait in my tests :

RuntimeException: Error running "doctrine:schema:update --em=default --force -v": 
 [WARNING] Not passing the "--complete" option to "doctrine:schema:update" is deprecated and will not be supported when 
           using doctrine/dbal 4 

/vendor/zenstruck/foundry/src/symfony_console.php:27
/vendor/zenstruck/foundry/src/ORM/ResetDatabase/SchemaDatabaseResetter.php:47
/vendor/zenstruck/foundry/src/ORM/ResetDatabase/SchemaDatabaseResetter.php:41
/vendor/zenstruck/foundry/src/ORM/ResetDatabase/BaseOrmResetter.php:53
/vendor/zenstruck/foundry/src/Persistence/ResetDatabase/ResetDatabaseManager.php:100
/vendor/zenstruck/foundry/src/Test/ResetDatabase.php:54

I use Foundry 2.6.1, which seems to use sufficient recent versions of both Doctrine ORM (^2.16) and DoctrineBundle (^2.10) to add this missing option without causing any harm to Foundry users.

If this is okay for you I can create a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions