Skip to content

Commit 4691fae

Browse files
committed
Register one-to-one annotation in LightQL
1 parent bd28161 commit 4691fae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/LightQL/LightQL.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
use ElementaryFramework\LightQL\Annotations\NamedQueryAnnotation;
4343
use ElementaryFramework\LightQL\Annotations\NotNullAnnotation;
4444
use ElementaryFramework\LightQL\Annotations\OneToManyAnnotation;
45+
use ElementaryFramework\LightQL\Annotations\OneToOneAnnotation;
4546
use ElementaryFramework\LightQL\Annotations\PersistenceUnitAnnotation;
4647
use ElementaryFramework\LightQL\Annotations\SizeAnnotation;
4748
use ElementaryFramework\LightQL\Annotations\UniqueAnnotation;
@@ -81,6 +82,7 @@ public static function registerAnnotations()
8182
$manager->registerAnnotation("manyToMany", ManyToManyAnnotation::class);
8283
$manager->registerAnnotation("manyToOne", ManyToOneAnnotation::class);
8384
$manager->registerAnnotation("oneToMany", OneToManyAnnotation::class);
85+
$manager->registerAnnotation("oneToOne", OneToOneAnnotation::class);
8486
$manager->registerAnnotation("persistenceUnit", PersistenceUnitAnnotation::class);
8587
$manager->registerAnnotation("namedQuery", NamedQueryAnnotation::class);
8688
}

0 commit comments

Comments
 (0)