Commit 81e94d0
Model choice accept custom unique column
Use now ->add('my_field', 'model', array('class' => 'MyClassWithSlug', 'index_property' => 'slug'));
To make choice list keys as slug1 parent 3b95d09 commit 81e94d0Copy full SHA for 81e94d0
File tree
Expand file treeCollapse file tree
6 files changed
+60
-12
lines changedOpen diff view settings
Filter options
- src/Symfony/Bridge/Propel1
- Form
- ChoiceList
- Type
- Tests
- Fixtures
- Form/ChoiceList
Expand file treeCollapse file tree
6 files changed
+60
-12
lines changedOpen diff view settings
Collapse file
src/Symfony/Bridge/Propel1/Form/ChoiceList/ModelChoiceList.php
Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Propel1/Form/ChoiceList/ModelChoiceList.php+22-8Lines changed: 22 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
71 | 71 | |
72 | 72 | |
73 | 73 | |
74 | | - |
75 | | - |
76 | | - |
77 | | - |
78 | | - |
79 | | - |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
80 | 80 | |
81 | 81 | |
| 82 | + |
82 | 83 | |
83 | 84 | |
84 | | - |
| 85 | + |
85 | 86 | |
86 | 87 | |
87 | 88 | |
| ||
96 | 97 | |
97 | 98 | |
98 | 99 | |
99 | | - |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
100 | 106 | |
101 | 107 | |
102 | 108 | |
| ||
437 | 443 | |
438 | 444 | |
439 | 445 | |
| 446 | + |
| 447 | + |
| 448 | + |
| 449 | + |
| 450 | + |
| 451 | + |
| 452 | + |
| 453 | + |
440 | 454 | |
441 | 455 | |
442 | 456 | |
|
Collapse file
src/Symfony/Bridge/Propel1/Form/Type/ModelType.php
Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Propel1/Form/Type/ModelType.php+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
79 | 79 | |
80 | 80 | |
81 | 81 | |
82 | | - |
| 82 | + |
| 83 | + |
83 | 84 | |
84 | 85 | |
85 | 86 | |
| ||
94 | 95 | |
95 | 96 | |
96 | 97 | |
| 98 | + |
97 | 99 | |
98 | 100 | |
99 | 101 | |
|
Collapse file
src/Symfony/Bridge/Propel1/Tests/Fixtures/Column.php
Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Propel1/Tests/Fixtures/Column.php+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
14 | | - |
| 14 | + |
15 | 15 | |
16 | 16 | |
17 | 17 | |
18 | | - |
| 18 | + |
19 | 19 | |
20 | 20 | |
21 | 21 | |
22 | 22 | |
23 | 23 | |
| 24 | + |
24 | 25 | |
25 | 26 | |
26 | 27 | |
|
Collapse file
src/Symfony/Bridge/Propel1/Tests/Fixtures/Item.php
Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Propel1/Tests/Fixtures/Item.php+9-1Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
23 | 23 | |
24 | 24 | |
25 | 25 | |
26 | | - |
| 26 | + |
| 27 | + |
| 28 | + |
27 | 29 | |
28 | 30 | |
29 | 31 | |
30 | 32 | |
31 | 33 | |
| 34 | + |
32 | 35 | |
33 | 36 | |
34 | 37 | |
| ||
56 | 59 | |
57 | 60 | |
58 | 61 | |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
59 | 67 | |
60 | 68 | |
61 | 69 | |
|
Collapse file
src/Symfony/Bridge/Propel1/Tests/Fixtures/ItemQuery.php
Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Propel1/Tests/Fixtures/ItemQuery.php+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
18 | 18 | |
19 | 19 | |
20 | 20 | |
| 21 | + |
21 | 22 | |
22 | 23 | |
23 | 24 | |
|
Collapse file
src/Symfony/Bridge/Propel1/Tests/Form/ChoiceList/ModelChoiceListTest.php
Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Propel1/Tests/Form/ChoiceList/ModelChoiceListTest.php+22Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
259 | 259 | |
260 | 260 | |
261 | 261 | |
| 262 | + |
| 263 | + |
| 264 | + |
| 265 | + |
| 266 | + |
| 267 | + |
| 268 | + |
| 269 | + |
| 270 | + |
| 271 | + |
| 272 | + |
| 273 | + |
| 274 | + |
| 275 | + |
| 276 | + |
| 277 | + |
| 278 | + |
| 279 | + |
| 280 | + |
| 281 | + |
| 282 | + |
| 283 | + |
262 | 284 | |
0 commit comments