44
55namespace Doctrine \Tests \ORM \Functional \Ticket ;
66
7- use Doctrine \ORM \Annotation as ORM ;
87use Doctrine \Tests \OrmFunctionalTestCase ;
98
109final class GH7505Test extends OrmFunctionalTestCase
@@ -26,15 +25,15 @@ protected function setUp() : void
2625 public function testSimpleArrayTypeHydratedCorrectly () : void
2726 {
2827 $ arrayResponse = new GH7505ArrayResponse ();
29- $ this ->em ->persist ($ arrayResponse );
28+ $ this ->_em ->persist ($ arrayResponse );
3029
3130 $ textResponse = new GH7505TextResponse ();
32- $ this ->em ->persist ($ textResponse );
31+ $ this ->_em ->persist ($ textResponse );
3332
34- $ this ->em ->flush ();
35- $ this ->em ->clear ();
33+ $ this ->_em ->flush ();
34+ $ this ->_em ->clear ();
3635
37- $ repository = $ this ->em ->getRepository (GH7505AbstractResponse::class);
36+ $ repository = $ this ->_em ->getRepository (GH7505AbstractResponse::class);
3837
3938 /** @var GH7505ArrayResponse $arrayResponse */
4039 $ arrayResponse = $ repository ->find ($ arrayResponse ->id );
@@ -47,44 +46,44 @@ public function testSimpleArrayTypeHydratedCorrectly() : void
4746}
4847
4948/**
50- * @ORM\ Entity()
51- * @ORM\ Table(name="gh7505_responses")
52- * @ORM\ InheritanceType("SINGLE_TABLE")
53- * @ORM\ DiscriminatorColumn(name="discr", type="string")
54- * @ORM\ DiscriminatorMap({
49+ * @Entity()
50+ * @Table(name="gh7505_responses")
51+ * @InheritanceType("SINGLE_TABLE")
52+ * @DiscriminatorColumn(name="discr", type="string")
53+ * @DiscriminatorMap({
5554 * "array" = GH7505ArrayResponse::class,
5655 * "text" = GH7505TextResponse::class,
5756 * })
5857 */
5958abstract class GH7505AbstractResponse
6059{
6160 /**
62- * @ORM\ Id @ORM\ GeneratedValue
63- * @ORM\ Column(type="integer")
61+ * @Id @GeneratedValue
62+ * @Column(type="integer")
6463 */
6564 public $ id ;
6665}
6766
6867/**
69- * @ORM\ Entity()
68+ * @Entity()
7069 */
7170class GH7505ArrayResponse extends GH7505AbstractResponse
7271{
7372 /**
74- * @ORM\ Column(name="value_array", type="simple_array")
73+ * @Column(name="value_array", type="simple_array")
7574 *
7675 * @var array
7776 */
7877 public $ value = [];
7978}
8079
8180/**
82- * @ORM\ Entity()
81+ * @Entity()
8382 */
8483class GH7505TextResponse extends GH7505AbstractResponse
8584{
8685 /**
87- * @ORM\ Column(name="value_string", type="string")
86+ * @Column(name="value_string", type="string")
8887 *
8988 * @var string|null
9089 */
0 commit comments