bonjour,
Si vrai que le problème était posté plusieurs fois et résolu aussi plusieurs fois, il s'agit du formulaire imbriqué.
En fait, j'ai utilisé une relation many to many avec CollectSell - Categorie et une table de relation CategorieCollectSell

Mon schéma des trois tables est le 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
49
50
51
52
53
54
55
56
57
58
59
 
#############################
### Table Categorie
#############################
#= categorie
Categorie:
  actAs: [Timestampable, SoftDelete]
  tableName: categorie
  columns:
    name:
      type: string(128)
      fixed: false
      unsigned: false
      primary: false
      notnull: true
      autoincrement: false
  relations:
    CollectSell:
      class: CollectSell 
      foreignAlias: Categorie 
      refClass:     CategorieCollectSell
      local:        categorie_id
      foreign:      id
#############################
### Table CategorieCollectSell
#############################
#= categorie_collect_sell
CategorieCollectSell:
  actAs: [Timestampable, SoftDelete]
  tableName: categorie_collect_sell
  columns:
    collectsell_id:
      type: integer
      primary: true
    categorie_id:
      type: integer
      primary: true
  relations: 
    CollectSell:
      class: CollectSell
      local: collectsell_id
      foreign: id
      foreignAlias: CategorieCollectSell
      onDelete: CASCADE
    Categorie: 
      foreignAlias: CategorieCollectSell
      onDelete: CASCADE
      class: Categorie
      local: categorie_id
      foreign: id 
#############################
### Table CollectSells
#############################
#= collect_sell
CollectSell:
  actAs: [Timestampable, SoftDelete]
  tableName: collect_sell
  columns:
    ........
Dans mon formulaire de collectSellForm

$this->setWidget('categorie_list', new sfWidgetFormDoctrineChoice(array('multiple' => true, 'expanded' => false, 'model' => 'categorie')));

j'ai une erreur au moment d'ajout un noveau collectSell
Unknown record property / related component "id" on "CategorieCollectSell"

je comprends vraiment pas pourquoi , et je suis bloqué depuis hier .... je perds beaucoup de temps la dessus,

Merci pour votre aide