PS C:\Users\user\Desktop\Symfony\test6> symfony console make:migration
In MetadataStorageError.php line 13:
The metadata storage is not up to date, please run the sync-metadata-storage
command to fix this issu
e.
make:migration
PS C:\Users\user\Desktop\Symfony\test6> sync-metadata-storage
sync-metadata-storage : Le terme «sync-metadata-storage» n'est pas reconnu comme
nom d'applet de
commande, fonction, fichier de script ou programme exécutable. Vérifiez
l'orthographe du nom, ou si un
chemin d'accès existe, vérifiez que le chemin d'accès est correct et réessayez.
Au caractère Ligne:1 : 1
+ sync-metadata-storage
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (sync-metadata-storage:String) [],
CommandNotFoundExceptio
n
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\user\Desktop\Symfony\test6> symfony sync-metadata-storage
Command "sync-metadata-storage" does not exist.
PS C:\Users\user\Desktop\Symfony\test6> symfony console sync-metadata-storage
Command "sync-metadata-storage" is not defined.
Do you want to run "doctrine:migrations:sync-metadata-storage" instead? (yes/no)
[no]:
>
PS C:\Users\user\Desktop\Symfony\test6> symfony console doctrine:migrations:sync-
metadata-storage
[OK] Metadata storage synchronized
PS C:\Users\user\Desktop\Symfony\test6> symfony console make:migration
In MetadataStorageError.php line 13:
The metadata storage is not up to date, please run the sync-metadata-storage
command to fix this issu
e.
make:migration
PS C:\Users\user\Desktop\Symfony\test6> symfony.exe console
doctrine:migrations:migrate
WARNING! You are about to execute a migration in database "formation" that could
result in schema changes and data loss. Are you sure you wish to continue? (yes/no)
[yes]:
> y
[ERROR] The version "latest" couldn't be reached, there are no registered
migrations.
PS C:\Users\user\Desktop\Symfony\test6> symfony.exe console
doctrine:migrations:latest
In MetadataStorageError.php line 13:
The metadata storage is not up to date, please run the sync-metadata-storage
command to fix this issu
e.
doctrine:migrations:latest [--configuration CONFIGURATION] [--em EM] [--conn CONN]
PS C:\Users\user\Desktop\Symfony\test6> symfony console make:migration
In MetadataStorageError.php line 13:
The metadata storage is not up to date, please run the sync-metadata-storage
command to fix this issu
e.
make:migration
PS C:\Users\user\Desktop\Symfony\test6> symfony console make:migration
In MetadataStorageError.php line 13:
The metadata storage is not up to date, please run the sync-metadata-storage
command to fix this issu
e.
make:migration
PS C:\Users\user\Desktop\Symfony\test6> symfony.exe console doctrine:schema:update
--force
[WARNING] Not passing the "--complete" option to "doctrine:schema:update" is
deprecated and will not be
supported when using doctrine/dbal 4
Updating database schema...
4 queries were executed
[OK] Database schema updated successfully!
PS C:\Users\user\Desktop\Symfony\test6> symfony console make:crud
The class name of the entity to create CRUD (e.g. VictoriousKangaroo):
> Apprenant
Choose a name for your controller class (e.g. ApprenantController)
[ApprenantController]:
>
Do you want to generate tests for the controller?. [Experimental] (yes/no) [no]:
> no
created: src/Controller/ApprenantController.php
created: src/Form/ApprenantType.php
created: templates/apprenant/_delete_form.html.twig
created: templates/apprenant/_form.html.twig
created: templates/apprenant/edit.html.twig
created: templates/apprenant/index.html.twig
created: templates/apprenant/new.html.twig
created: templates/apprenant/show.html.twig
Success!
Next: Check your new CRUD by going to /apprenant/
PS C:\Users\user\Desktop\Symfony\test6>