Bonjour,

J'ai créé mes tables avec le shéma suivant :

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
 
# config/doctrine/schema.yml
 
Region:
  tableName:  region
  columns:
    id:       { type: integer(4), unsigned: true, primary: true, autoincrement: true }
    name:      { type: string(255), notnull: true }
 
Departement:
  tableName: departement
  columns:
    region_id: { type: integer(4), unsigned: true }
    name:       { type: string(255), notnull: true }
 
  relations:
    Region:
      local:        region_id
      foreign:      id
      foreignAlias: Departement
      onDelete:     CASCADE
Annonce:
  actAs: { Timestampable: ~ }
  columns:
    Utilisateur_id: { type: integer, notnull: true }
    Categorie_id:   { type: integer, notnull: true }
    Departement_id: { type: integer, notnull: true }
    CodePostal:     { type: integer }
    Ville:          { type: string(255) }
    TexteAnnonce:   { type: string(4000) }
    TitreAnnonce:   { type: string(255) }
    Prix:           { type: integer}
    TypeAnnonce:    { type: string(255)}
    isAccomplished: { type: boolean, notnull: true, default: 0  }
    is_activated:   { type: boolean, notnull: true, default: 0 }
    expires_at:     { type: timestamp, notnull: true }
  relations:
    Utilisateur:    { onDelete: CASCADE, local: Utilisateur_id, foreign: id, foreignAlias: Utilisateur }
    Departement:    { onDelete: CASCADE, local: Departement_id, foreign: id}
    Categorie:      { onDelete: CASCADE, local: Categorie_id, foreign: id }
Categorie:
  actAs: { Timestampable: ~ }
  columns:
    name:    { type: string(255), notnull: true, unique: true }
    famille: { type: string(255), notnull: true, unique: true }
.
.
.
Mon fichier Annonce.yml :

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
 
Annonce:
   mustangGT:
    Departement:    alsace
    Categorie:      voitures
    Utilisateur:    onepiece
    codepostal:     90000
    ville:          belfort
    texteannonce:   |
     Je vends une tres belle mustang dernier cris en tres bon etat
    titreannonce:   mustangGT a vendre
    prix: 90000
    typeannonce:    particulier
    isaccomplished: false
    is_activated:   true
    expires_at:     '2010-10-10'
   belappartement:
    Departement:    aquitaine
    Categorie:      appartement
    Utilisateur:    fastone
    codepostal:     75000
    ville:          Paris
    texteannonce:   |
     Je vends un tres bel appartement meuble en tres bon etat
    titreannonce:   appart a vendre
    prix: 90000
    typeannonce:    particulier
    isaccomplished: false
    is_activated:   true
    expires_at:     '2010-10-10'



après que je lance: php symfony doctrine:data-load

Il me sors l'erreur suivante :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
  Invalid row key specified: (departement) alsace, referred to in (annonce) mustangGT
Que dois-je faire ?

Merci d'avance.