Could not find any migrations to execute?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
88 views
Logs
#################################################################################################### ___ DOCTRINE _______________________________________________________________________________________ SELECT quote_ident(table_name) AS table_name, table_schema AS schema_name FROM information_schema.tables WHERE table_schema NOT LIKE 'pg\\_%' AND table_schema != 'information_schema' AND table_name != 'geometry_columns' AND table_name != 'spatial_ref_sys' AND table_type != 'VIEW' ___ DOCTRINE _______________________________________________________________________________________ CREATE TABLE migrations (version VARCHAR(255) NOT NULL, PRIMARY KEY(version)) ___ DOCTRINE _______________________________________________________________________________________ SELECT version FROM migrations ___ DOCTRINE _______________________________________________________________________________________ SELECT version FROM migrations ORDER BY version DESC LIMIT 1 ___ DOCTRINE _______________________________________________________________________________________ SELECT version FROM migrations ___ *** ERROR *** ==> CONSOLE ______________________________________________________________________ Error thrown while running command "doctrine:migrations:migrate". Message: "Could not find any migrations to execute." --> exception: null --> command: 'doctrine:migrations:migrate' --> message: 'Could not find any migrations to execute.' ___ CONSOLE ________________________________________________________________________________________ Command "doctrine:migrations:migrate" exited with code "4" --> command: 'doctrine:migrations:migrate' --> code: 4


doctrine settigns
doctrine: dbal: driver: "%app.database_driver%" .... orm: auto_generate_proxy_classes: '%kernel.debug%' naming_strategy: doctrine.orm.naming_strategy.underscore auto_mapping: true second_level_cache: enabled: true mappings: App: is_bundle: false type: xml dir: '%kernel.project_dir%/src/Infrastructure/Mappings' prefix: 'App\\Domain\\' alias: App


Mapping
<?xml version="1.0" encoding="UTF-8"?>


Entity are at, with annotations everything works. App.Domain.User.Entity.User.dcm.xmllies at the address specified as dir
by | 88 views

1 Answer

0 like 0 dislike
You may need to use the extension 'orm.xml' instead of 'dcm.xml'.

Cm. https://github.com/doctrine/DoctrineBundle/blob/1f...
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users