summaryrefslogtreecommitdiff
path: root/vendor/doctrine/orm/src/Mapping/OneToMany.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/orm/src/Mapping/OneToMany.php')
-rw-r--r--vendor/doctrine/orm/src/Mapping/OneToMany.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Mapping/OneToMany.php b/vendor/doctrine/orm/src/Mapping/OneToMany.php
new file mode 100644
index 0000000..d71c4f9
--- /dev/null
+++ b/vendor/doctrine/orm/src/Mapping/OneToMany.php
@@ -0,0 +1,26 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\ORM\Mapping;
6
7use Attribute;
8
9#[Attribute(Attribute::TARGET_PROPERTY)]
10final class OneToMany implements MappingAttribute
11{
12 /**
13 * @param class-string|null $targetEntity
14 * @param string[]|null $cascade
15 * @psalm-param 'LAZY'|'EAGER'|'EXTRA_LAZY' $fetch
16 */
17 public function __construct(
18 public readonly string|null $targetEntity = null,
19 public readonly string|null $mappedBy = null,
20 public readonly array|null $cascade = null,
21 public readonly string $fetch = 'LAZY',
22 public readonly bool $orphanRemoval = false,
23 public readonly string|null $indexBy = null,
24 ) {
25 }
26}