File tree 3 files changed +20
-0
lines changed
src/Symfony/Bridge/Doctrine/Tests/PropertyInfo
3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ public function testGetProperties()
78
78
'indexedBaz ' ,
79
79
'indexedByDt ' ,
80
80
'indexedByCustomType ' ,
81
+ 'indexedBuz ' ,
81
82
]);
82
83
83
84
$ this ->assertEquals (
@@ -197,6 +198,14 @@ public function typesProvider()
197
198
new Type (Type::BUILTIN_TYPE_OBJECT , false , DoctrineRelation::class)
198
199
)]],
199
200
['indexedByCustomType ' , null ],
201
+ ['indexedBuz ' , [new Type (
202
+ Type::BUILTIN_TYPE_OBJECT ,
203
+ false ,
204
+ Collection::class,
205
+ true ,
206
+ new Type (Type::BUILTIN_TYPE_STRING ),
207
+ new Type (Type::BUILTIN_TYPE_OBJECT , false , DoctrineRelation::class)
208
+ )]],
200
209
];
201
210
202
211
if (class_exists (Types::class)) {
Original file line number Diff line number Diff line change @@ -132,4 +132,9 @@ class DoctrineDummy
132
132
* @OneToMany(targetEntity="DoctrineRelation", mappedBy="customType", indexBy="customType")
133
133
*/
134
134
private $ indexedByCustomType ;
135
+
136
+ /**
137
+ * @OneToMany(targetEntity="DoctrineRelation", mappedBy="buzField", indexBy="buzField")
138
+ */
139
+ protected $ indexedBuz ;
135
140
}
Original file line number Diff line number Diff line change @@ -54,4 +54,10 @@ class DoctrineRelation
54
54
* @Column(type="foo")
55
55
*/
56
56
private $ customType ;
57
+
58
+ /**
59
+ * @Column(type="guid", name="different_than_field")
60
+ * @ManyToOne(targetEntity="DoctrineDummy", inversedBy="indexedBuz")
61
+ */
62
+ protected $ buzField ;
57
63
}
You can’t perform that action at this time.
0 commit comments