Skip to content

Commit bf2e068

Browse files
committed
Fixing annotation name
1 parent 7921845 commit bf2e068

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Utils/Annotation/AnnotationParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static function buildWithDefaultAnnotations(array $additionalAnnotations)
4343
'ProtectedGetter' => ProtectedGetter::class,
4444
'ProtectedSetter' => ProtectedSetter::class,
4545
'ProtectedOneToMany' => ProtectedOneToMany::class,
46-
'Generated' => ReadOnly::class,
46+
'ReadOnly' => ReadOnly::class,
4747
'JsonKey' => JsonKey::class,
4848
'JsonIgnore' => JsonIgnore::class,
4949
'JsonInclude' => JsonInclude::class,

tests/TDBMAbstractServiceTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,8 @@ private static function initSchema(Connection $connection): void
421421
$connection->exec('CREATE TABLE `players` (
422422
`id` INT UNSIGNED AUTO_INCREMENT NOT NULL,
423423
`player_and_games` JSON NOT NULL,
424-
`names_virtual` VARCHAR(20) GENERATED ALWAYS AS (`player_and_games` ->> \'$.name\') NOT NULL COMMENT \'@Generated\',
425-
`animal_id` INT COMMENT \'@Generated\',
424+
`names_virtual` VARCHAR(20) GENERATED ALWAYS AS (`player_and_games` ->> \'$.name\') NOT NULL COMMENT \'@ReadOnly\',
425+
`animal_id` INT COMMENT \'@ReadOnly\',
426426
PRIMARY KEY (`id`),
427427
FOREIGN KEY (animal_id) REFERENCES animal(id)
428428
);

0 commit comments

Comments
 (0)