File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
tests/Tests/ORM/Functional/Ticket Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 6
6
7
7
use Doctrine \DBAL \Types \Types ;
8
8
use Doctrine \ORM \Mapping as ORM ;
9
- use Doctrine \ORM \Mapping \Column ;
10
9
use Doctrine \ORM \UnitOfWork ;
11
10
use Doctrine \Tests \OrmFunctionalTestCase ;
12
11
@@ -17,7 +16,7 @@ protected function setUp(): void
17
16
parent ::setUp ();
18
17
19
18
$ this ->createSchemaForModels (
20
- GH6123Entity::class,
19
+ GH6123Entity::class
21
20
);
22
21
}
23
22
@@ -58,7 +57,7 @@ public function testRemovedEntityCanBePersistedAgain(): void
58
57
$ this ->_em ->flush ();
59
58
}
60
59
61
- private function loadEntityFromDatabase (int $ id ): GH6123Entity | null
60
+ private function loadEntityFromDatabase (int $ id ): ? GH6123Entity
62
61
{
63
62
return $ this ->_em ->createQueryBuilder ()
64
63
->select ('e ' )
@@ -70,11 +69,20 @@ private function loadEntityFromDatabase(int $id): GH6123Entity|null
70
69
}
71
70
}
72
71
72
+ /**
73
+ * @ORM\Entity
74
+ */
73
75
#[ORM \Entity]
74
76
class GH6123Entity
75
77
{
78
+ /**
79
+ * @ORM\Id
80
+ * @ORM\GeneratedValue
81
+ * @ORM\Column(type="integer")
82
+ * @var int
83
+ */
76
84
#[ORM \Id]
77
85
#[ORM \GeneratedValue]
78
- #[Column(type: Types::INTEGER , nullable: false )]
79
- public int $ id ;
86
+ #[ORM \ Column(type: Types::INTEGER )]
87
+ public $ id ;
80
88
}
You can’t perform that action at this time.
0 commit comments