@@ -108,7 +108,7 @@ public function testSetDataToUninitializedEntityWithNonRequired()
108
108
109
109
$ this ->persist (array ($ entity1 , $ entity2 ));
110
110
111
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
111
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
112
112
'em ' => 'default ' ,
113
113
'class ' => self ::SINGLE_IDENT_CLASS ,
114
114
'required ' => false ,
@@ -125,7 +125,7 @@ public function testSetDataToUninitializedEntityWithNonRequiredToString()
125
125
126
126
$ this ->persist (array ($ entity1 , $ entity2 ));
127
127
128
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
128
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
129
129
'em ' => 'default ' ,
130
130
'class ' => self ::SINGLE_IDENT_CLASS ,
131
131
'required ' => false ,
@@ -142,7 +142,7 @@ public function testSetDataToUninitializedEntityWithNonRequiredQueryBuilder()
142
142
$ this ->persist (array ($ entity1 , $ entity2 ));
143
143
$ qb = $ this ->em ->createQueryBuilder ()->select ('e ' )->from (self ::SINGLE_IDENT_CLASS , 'e ' );
144
144
145
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
145
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
146
146
'em ' => 'default ' ,
147
147
'class ' => self ::SINGLE_IDENT_CLASS ,
148
148
'required ' => false ,
@@ -158,7 +158,7 @@ public function testSetDataToUninitializedEntityWithNonRequiredQueryBuilder()
158
158
*/
159
159
public function testConfigureQueryBuilderWithNonQueryBuilderAndNonClosure ()
160
160
{
161
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
161
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
162
162
'em ' => 'default ' ,
163
163
'class ' => self ::SINGLE_IDENT_CLASS ,
164
164
'query_builder ' => new \stdClass (),
@@ -170,7 +170,7 @@ public function testConfigureQueryBuilderWithNonQueryBuilderAndNonClosure()
170
170
*/
171
171
public function testConfigureQueryBuilderWithClosureReturningNonQueryBuilder ()
172
172
{
173
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
173
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
174
174
'em ' => 'default ' ,
175
175
'class ' => self ::SINGLE_IDENT_CLASS ,
176
176
'query_builder ' => function () {
@@ -183,7 +183,7 @@ public function testConfigureQueryBuilderWithClosureReturningNonQueryBuilder()
183
183
184
184
public function testSetDataSingleNull ()
185
185
{
186
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
186
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
187
187
'multiple ' => false ,
188
188
'em ' => 'default ' ,
189
189
'class ' => self ::SINGLE_IDENT_CLASS ,
@@ -196,7 +196,7 @@ public function testSetDataSingleNull()
196
196
197
197
public function testSetDataMultipleExpandedNull ()
198
198
{
199
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
199
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
200
200
'multiple ' => true ,
201
201
'expanded ' => true ,
202
202
'em ' => 'default ' ,
@@ -210,7 +210,7 @@ public function testSetDataMultipleExpandedNull()
210
210
211
211
public function testSetDataMultipleNonExpandedNull ()
212
212
{
213
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
213
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
214
214
'multiple ' => true ,
215
215
'expanded ' => false ,
216
216
'em ' => 'default ' ,
@@ -224,7 +224,7 @@ public function testSetDataMultipleNonExpandedNull()
224
224
225
225
public function testSubmitSingleExpandedNull ()
226
226
{
227
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
227
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
228
228
'multiple ' => false ,
229
229
'expanded ' => true ,
230
230
'em ' => 'default ' ,
@@ -238,7 +238,7 @@ public function testSubmitSingleExpandedNull()
238
238
239
239
public function testSubmitSingleNonExpandedNull ()
240
240
{
241
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
241
+ $ field = $ this ->factory ->
6D4E
createNamed ('name ' , 'entity ' , null , array (
242
242
'multiple ' => false ,
243
243
'expanded ' => false ,
244
244
'em ' => 'default ' ,
@@ -252,7 +252,7 @@ public function testSubmitSingleNonExpandedNull()
252
252
253
253
public function testSubmitMultipleNull ()
254
254
{
255
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
255
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
256
256
'multiple ' => true ,
257
257
'em ' => 'default ' ,
258
258
'class ' => self ::SINGLE_IDENT_CLASS ,
@@ -270,7 +270,7 @@ public function testSubmitSingleNonExpandedSingleIdentifier()
270
270
271
271
$ this ->persist (array ($ entity1 , $ entity2 ));
272
272
273
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
273
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
274
274
'multiple ' => false ,
275
275
'expanded ' => false ,
276
276
'em ' => 'default ' ,
@@ -292,7 +292,7 @@ public function testSubmitSingleNonExpandedCompositeIdentifier()
292
292
293
293
$ this ->persist (array ($ entity1 , $ entity2 ));
294
294
295
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
295
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
296
296
'multiple ' => false ,
297
297
'expanded ' => false ,
298
298
'em ' => 'default ' ,
@@ -316,7 +316,7 @@ public function testSubmitMultipleNonExpandedSingleIdentifier()
316
316
317
317
$ this ->persist (array ($ entity1 , $ entity2 , $ entity3 ));
318
318
319
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
319
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
320
320
'multiple ' => true ,
321
321
'expanded ' => false ,
322
322
'em ' => 'default ' ,
@@ -341,7 +341,7 @@ public function testSubmitMultipleNonExpandedSingleIdentifier_existingData()
341
341
342
342
$ this ->persist (array ($ entity1 , $ entity2 , $ entity3 ));
343
343
344
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
344
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
345
345
'multiple ' => true ,
346
346
'expanded ' => false ,
347
347
'em ' => 'default ' ,
@@ -372,7 +372,7 @@ public function testSubmitMultipleNonExpandedCompositeIdentifier()
372
372
373
373
$ this ->persist (array ($ entity1 , $ entity2 , $ entity3 ));
374
374
375
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
375
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
376
376
'multiple ' => true ,
377
377
'expanded ' => false ,
378
378
'em ' => 'default ' ,
@@ -398,7 +398,7 @@ public function testSubmitMultipleNonExpandedCompositeIdentifier_existingData()
398
398
399
399
$ this ->persist (array ($ entity1 , $ entity2 , $ entity3 ));
400
400
401
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
401
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
402
402
'multiple ' => true ,
403
403
'expanded ' => false ,
404
404
'em ' => 'default ' ,
@@ -428,7 +428,7 @@ public function testSubmitSingleExpanded()
428
428
429
429
$ this ->persist (array ($ entity1 , $ entity2 ));
430
430
431
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
431
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
432
432
'multiple ' => false ,
433
433
'expanded ' => true ,
434
434
'em ' => 'default ' ,
@@ -454,7 +454,7 @@ public function testSubmitMultipleExpanded()
454
454
455
455
$ this ->persist (array ($ entity1 , $ entity2 , $ entity3 ));
456
456
457
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
457
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
458
458
'multiple ' => true ,
459
459
'expanded ' => true ,
460
460
'em ' => 'default ' ,
@@ -484,7 +484,7 @@ public function testOverrideChoices()
484
484
485
485
$ this ->persist (array ($ entity1 , $ entity2 , $ entity3 ));
486
486
487
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
487
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
488
488
'em ' => 'default ' ,
489
489
'class ' => self ::SINGLE_IDENT_CLASS ,
490
490
// not all persisted entities should be displayed
@@ -509,7 +509,7 @@ public function testGroupByChoices()
509
509
510
510
$ this ->persist (array ($ item1 , $ item2 , $ item3 , $ item4 ));
511
511
512
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
512
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
513
513
'em ' => 'default ' ,
514
514
'class ' => self ::ITEM_GROUP_CLASS ,
515
515
'choices ' => array ($ item1 , $ item2 , $ item3 , $ item4 ),
@@ -535,7 +535,7 @@ public function testDisallowChoicesThatAreNotIncluded_choicesSingleIdentifier()
535
535
536
536
$ this ->persist (array ($ entity1 , $ entity2 , $ entity3 ));
537
537
538
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
538
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
539
539
'em ' => 'default ' ,
540
540
'class ' => self ::SINGLE_IDENT_CLASS ,
541
541
'choices ' => array ($ entity1 , $ entity2 ),
@@ -556,7 +556,7 @@ public function testDisallowChoicesThatAreNotIncluded_choicesCompositeIdentifier
556
556
557
557
$ this ->persist (array ($ entity1 , $ entity2 , $ entity3 ));
558
558
559
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
559
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
560
560
'em ' => 'default ' ,
561
561
'class ' => self ::COMPOSITE_IDENT_CLASS ,
562
562
'choices ' => array ($ entity1 , $ entity2 ),
@@ -579,7 +579,7 @@ public function testDisallowChoicesThatAreNotIncludedQueryBuilderSingleIdentifie
579
579
580
580
$ repository = $ this ->em ->getRepository (self ::SINGLE_IDENT_CLASS );
581
581
582
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
582
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
583
583
'em ' => 'default ' ,
584
584
'class ' => self ::SINGLE_IDENT_CLASS ,
585
585
'query_builder ' => $ repository ->createQueryBuilder ('e ' )
@@ -601,7 +601,7 @@ public function testDisallowChoicesThatAreNotIncludedQueryBuilderAsClosureSingle
601
601
602
602
$ this ->persist (array ($ entity1 , $ entity2 , $ entity3 ));
603
603
604
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
604
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
605
605
'em ' => 'default ' ,
606
606
'class ' => self ::SINGLE_IDENT_CLASS ,
607
607
'query_builder ' => function ($ repository ) {
@@ -625,7 +625,7 @@ public function testDisallowChoicesThatAreNotIncludedQueryBuilderAsClosureCompos
625
625
626
626
$ this ->persist (array ($ entity1 , $ entity2 , $ entity3 ));
627
627
628
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
628
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
629
629
'em ' => 'default ' ,
630
630
'class ' => self ::COMPOSITE_IDENT_CLASS ,
631
631
'query_builder ' => function ($ repository ) {
@@ -647,7 +647,7 @@ public function testSubmitSingleStringIdentifier()
647
647
648
648
$ this ->persist (array ($ entity1 ));
649
649
650
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
650
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
651
651
'multiple ' => false ,
652
652
'expanded ' => false ,
653
653
'em ' => 'default ' ,
@@ -668,7 +668,7 @@ public function testSubmitCompositeStringIdentifier()
668
668
669
669
$ this ->persist (array ($ entity1 ));
670
670
671
- $ field = $ this ->factory ->createNamed ('entity ' , 'name ' , null , array (
671
+ $ field = $ this ->factory ->createNamed ('name ' , 'entity ' , null , array (
672
672
'multiple ' => false ,
673
673
'expanded ' => false ,
674
674
'em ' => 'default ' ,
0 commit comments