diff options
Diffstat (limited to 'vendor/doctrine/orm/src/Mapping/InverseSideMapping.php')
| -rw-r--r-- | vendor/doctrine/orm/src/Mapping/InverseSideMapping.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Mapping/InverseSideMapping.php b/vendor/doctrine/orm/src/Mapping/InverseSideMapping.php new file mode 100644 index 0000000..56dce9f --- /dev/null +++ b/vendor/doctrine/orm/src/Mapping/InverseSideMapping.php | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Mapping; | ||
| 6 | |||
| 7 | abstract class InverseSideMapping extends AssociationMapping | ||
| 8 | { | ||
| 9 | /** | ||
| 10 | * required for bidirectional associations | ||
| 11 | * The name of the field that completes the bidirectional association on | ||
| 12 | * the owning side. This key must be specified on the inverse side of a | ||
| 13 | * bidirectional association. | ||
| 14 | */ | ||
| 15 | public string $mappedBy; | ||
| 16 | |||
| 17 | final public function backRefFieldName(): string | ||
| 18 | { | ||
| 19 | return $this->mappedBy; | ||
| 20 | } | ||
| 21 | |||
| 22 | /** @return list<string> */ | ||
| 23 | public function __sleep(): array | ||
| 24 | { | ||
| 25 | return [ | ||
| 26 | ...parent::__sleep(), | ||
| 27 | 'mappedBy', | ||
| 28 | ]; | ||
| 29 | } | ||
| 30 | } | ||
