Map an entity in symfony 4

0

Quetal, I have a problem and it was that before in symfony3 it was run in the console:

php bin/console doctrine:mapping:import MiBundle yml

and it generated and mapped a database entity but in symfony 4 the command in the console is always the same, but the bundles are no longer occupied in the latest version, so the previous command as it is already it does not work, Could someone help me ...

    
asked by jeasomoza 20.12.2017 в 22:51
source

1 answer

0

As of version 4 it will no longer be available because you are supposed to start creating the entities and then map - > to the database.

What they recommend is to create the entities with annotations and then execute

php bin/console doctrine:schema:update --force
    
answered by 06.03.2018 / 21:48
source