bonjour,

Je rencontre un message du genre :

Rien à maj - votre base est deja synchronisee avec les metadatas des entites...

qd je lance la cmde php app/console doctrine:schema:update --force

voici mes entitées :

Rubrique
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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
 
namespace Msm\SiteBundle\Entity;
 
use Doctrine\ORM\Mapping as ORM;
 
/**
 * Msm\SiteBundle\Entity\Rubrique
 * 
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Msm\SiteBundle\Entity\RubriqueRepository")
 */
class Rubrique {
    /**
     * 
     * @var smallint $idrubrique
     * @ORM\Column(name="idrubrique", type="smallint")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $idrubrique;
 
    /**
     * 
     * @var smallint $idcategorie
     * @ORM\Column(name="idcategorie", type="smallint")
     * @ORM\ManyToOne(targetEntity="Categorie")
     * @ORM\JoinColumn(name="idcategorie", referencedColumnName="idcategorie")
     */
    private $idcategorie;
 
    /**
     * 
     * @var string $nomrubrique
     * @ORM\Column(name="nomrubrique", type="string", length=255)
     */
    private $nomrubrique;
 
    /**
     * Set idrubrique
     *
     * @param smallint $idrubrique 
     */
    public function setIdrubrique($idrubrique)
    {
        $this->idrubrique = $idrubrique;
    }
 
    /**
     * Get idrubrique
     * 
     * @return smallint 
     */
    public function getIdrubrique()
    {
        return $this->idrubrique;
    }
 
    /**
     * Set idcategorie
     *
     * @param smallint $idcategorie 
     */
    public function setIdcategorie($idcategorie)
    {
        $this->idcategorie = $idcategorie;
    }
 
    /**
     * Get idcategorie
     * 
     * @return smallint 
     */
    public function getIdcategorie()
    {
        return $this->idcategorie;
    }
 
    /**
     * Set nomrubrique
     * 
     * @param string $nomrubrique 
     */
    public function setNomrubrique($nomrubrique)
    {
        $this->nomrubrique = $nomrubrique;
    }
 
    /**
     * Get nomrubrique
     * 
     * @return string 
     */
    public function getNomrubrique()
    {
        return $this->nomrubrique;
    }
}
et Categorie
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
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
 
 
 
namespace Msm\SiteBundle\Entity;
 
use Doctrine\ORM\Mapping as ORM;
 
/**
 * Msm\SiteBundle\Entity\Categorie
 * 
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Msm\SiteBundle\Entity\CategorieRepository")
 */
class Categorie {
    /**
     * 
     * @var smallint $idcategorie
     * @ORM\Column(name="idcategorie", type="smallint")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $idcategorie;
 
    /**
     * 
     * @var string $nomcategorie
     * @ORM\Column(name="nomcategorie", type="string", length=255)
     */
    private $nomcategorie;
 
    /**
     * Set idcategorie
     *
     * @param smallint $idcategorie
     */
    public function setIdcategorie($idcategorie)
    {
        $this->idcategorie = $idcategorie;
    }
 
    /**
     * Get idcategorie
     * 
     * @return smallint 
     */
    public function getIdcategorie()
    {
        return $this->idcategorie;
    }
 
    /**
     * Set nomcategorie
     * 
     * @param string $nomcategorie 
     */
    public function setNomcategorie($nomcategorie)
    {
        $this->nomcategorie = $nomcategorie;
    }
 
    /**
     * Get nomcategorie
     * 
     * @return string 
     */
    public function getNomcategorie()
    {
        return $this->nomcategorie;
    }
}
J'essaie juste d'ajouter une cle etrangere idcategorie à la table Rubrique. Merci pour votre aide.