2
respostas

Script cache:clear returned with error code 1 - O QUE FAZER?

O erro abaixo é apresentado quando executo composer update e não funciona mais nada do doctrine, etc.

Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 1
!!
!!  In ArrayNode.php line 331:
!!

!!    Unrecognized options "dir_name, namespace" under "doctrine_migratio
!!    ns". Available options are "all_or_nothing", "check_database_platfo
!!    rm", "connection", "custom_template", "em", "factories", "migration
!!    s", "migrations_paths", "organize_migrations", "services", "storage
!!    ".

!!

!!
!!
Script @auto-scripts was called via post-install-cmd
2 respostas

I resolved this problem by changing: I edited doctrine-migrations.yaml:

Befor:

doctrine_migrations: dir_name: '%kernel.project_dir%/src/Migrations'

# namespace is arbitrary but should be different from App\Migrations
# as migrations classes should NOT be autoloaded
namespace: DoctrineMigrations

After:

doctrine_migrations: migrations_paths: 'DoctrineMigrations': '%kernel.project_dir%/src/Migrations'

Oi João, como vai?

Fico feliz que tenha conseguido solucionar o problema, caso tenha dúvidas, fico à disposição.

Abraços e bons estudos!