Bonjour,
je débute avec Symfony2 et j'attaque avec FOSUserBundle non sans peine.
Je déroule le mode opératoire de https://github.com/FriendsOfSymfony/...s/doc/index.md
mais au step 7, c'est le drame.
Code bash : Sélectionner tout - Visualiser dans une fenêtre à part $ php app/console doctrine:schema:update --force
j'ai pourtant généré une classe user perso :[RuntimeException]
The autoloader expected class "Jici\MyuserBundle\DependencyInjection\Configuration" to be defined in file
"D:\xampp\htdocs\jici/src\Jici\MyuserBundle\ DependencyInjection\Configuration.php".
The file was found but the class was not in it, the class name or namespace probably has a typo.
So, what ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 <?php namespace Jici\MyuserBundle\Entity; use FOS\UserBundle\Model\User as BaseUser; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="fos_user") */ class Myuser extends BaseUser { public function __construct() { parent::__construct(); } /** * @ORM\Id * @ORM\Column(type="integer", unique="TRUE") * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @var string $lg * * @ORM\Column(name="lg", type="string", length=2, nullable="FALSE", unique="FALSE") * */ protected $lg; }
Partager