File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ public function testGetProperties()
7878 'indexedBaz ' ,
7979 'indexedByDt ' ,
8080 'indexedByCustomType ' ,
81+ 'indexedBuz ' ,
8182 ]);
8283
8384 $ this ->assertEquals (
@@ -197,6 +198,14 @@ public function typesProvider()
197198 new Type (Type::BUILTIN_TYPE_OBJECT , false , DoctrineRelation::class)
198199 )]],
199200 ['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+ )]],
200209 ];
201210
202211 if (class_exists (Types::class)) {
Original file line number Diff line number Diff line change @@ -132,4 +132,9 @@ class DoctrineDummy
132132 * @OneToMany(targetEntity="DoctrineRelation", mappedBy="customType", indexBy="customType")
133133 */
134134 private $ indexedByCustomType ;
135+
136+ /**
137+ * @OneToMany(targetEntity="DoctrineRelation", mappedBy="buzField", indexBy="buzField")
138+ */
139+ protected $ indexedBuz ;
135140}
Original file line number Diff line number Diff line change @@ -54,4 +54,10 @@ class DoctrineRelation
5454 * @Column(type="foo")
5555 */
5656 private $ customType ;
57+
58+ /**
59+ * @Column(type="guid", name="different_than_field")
60+ * @ManyToOne(targetEntity="DoctrineDummy", inversedBy="indexedBuz")
61+ */
62+ protected $ buzField ;
5763}
You can’t perform that action at this time.
0 commit comments