problème avec la commande php app/console generate:doctrine:crud
Bonjour ,
s'il vous plait je veux générer les formulaire avec la commande php app/console generate:doctrine:crud mais la commande ne marche pas j 'ai essayé plusieurs fois mais le problème ne pas résolu
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
| C:\wamp\www\portail>php app/console generate:doctrine:crud
Welcome to the Doctrine2 CRUD generator
This command helps you generate CRUD controllers and templates.
First, you need to give the entity for which you want to generate a CRUD.
You can give an entity that does not exist yet and the wizard will help
you defining it.
You must use the shortcut notation like AcmeBlogBundle:Post.
The Entity shortcut name: MyAppemploiBundle:PvJobCandAssociations
'stty' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
[Doctrine\ORM\Mapping\MappingException]
No identifier/primary key specified for Entity 'MyApp\emploiBundle\Entity\PvJo
bCandProfilSysteme'. Every Entity must have an identifier/primary key.
doctrine:generate:crud [--entity="..."] [--route-prefix="..."] [--with-write] [-
-format="..."]
C:\wamp\www\portail>php app/console generate:doctrine:crud MyAppemploiBundle:PvJ
obCandAssociations.orm --verbose
'stty' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
[RuntimeException]
Too many arguments.
Exception trace:
() at C:\wamp\www\portail\vendor\symfony\src\Symfony\Component\Console\Input\Ar
gvInput.php:176
Symfony\Component\Console\Input\ArgvInput->parseArgument() at C:\wamp\www\porta
il\vendor\symfony\src\Symfony\Component\Console\Input\ArgvInput.php:85
Symfony\Component\Console\Input\ArgvInput->parse() at C:\wamp\www\portail\vendo
r\symfony\src\Symfony\Component\Console\Input\Input.php:58
Symfony\Component\Console\Input\Input->bind() at C:\wamp\www\portail\vendor\sym
fony\src\Symfony\Component\Console\Command\Command.php:207
Symfony\Component\Console\Command\Command->run() at C:\wamp\www\portail\vendor\
symfony\src\Symfony\Component\Console\Application.php:194
Symfony\Component\Console\Application->doRun() at C:\wamp\www\portail\vendor\sy
mfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php:75
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at C:\wamp\www\port
ail\vendor\symfony\src\Symfony\Component\Console\Application.php:118
Symfony\Component\Console\Application->run() at C:\wamp\www\portail\app\console
:22
doctrine:generate:crud [--entity="..."] [--route-prefix="..."] [--with-write] [-
-format="..."]
C:\wamp\www\portail> |