From 05e38eadbeb3de19e5b26003c2b401e00bb71df4 Mon Sep 17 00:00:00 2001 From: polo Date: Sun, 18 Oct 2026 00:08:23 +0200 Subject: =?UTF-8?q?sortie=20de=20vendor=20du=20d=C3=A9p=C3=B4t,=20oubli=20?= =?UTF-8?q?dans=20config-template.ini?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../doctrine/orm/src/Mapping/JoinColumnMapping.php | 77 ---------------------- 1 file changed, 77 deletions(-) delete mode 100644 vendor/doctrine/orm/src/Mapping/JoinColumnMapping.php (limited to 'vendor/doctrine/orm/src/Mapping/JoinColumnMapping.php') diff --git a/vendor/doctrine/orm/src/Mapping/JoinColumnMapping.php b/vendor/doctrine/orm/src/Mapping/JoinColumnMapping.php deleted file mode 100644 index 172c256..0000000 --- a/vendor/doctrine/orm/src/Mapping/JoinColumnMapping.php +++ /dev/null @@ -1,77 +0,0 @@ - */ -final class JoinColumnMapping implements ArrayAccess -{ - use ArrayAccessImplementation; - - public bool|null $unique = null; - public bool|null $quoted = null; - public string|null $fieldName = null; - public string|null $onDelete = null; - public string|null $columnDefinition = null; - public bool|null $nullable = null; - - /** @var array|null */ - public array|null $options = null; - - public function __construct( - public string $name, - public string $referencedColumnName, - ) { - } - - /** - * @param array $mappingArray - * @psalm-param array{ - * name: string, - * referencedColumnName: string, - * unique?: bool|null, - * quoted?: bool|null, - * fieldName?: string|null, - * onDelete?: string|null, - * columnDefinition?: string|null, - * nullable?: bool|null, - * options?: array|null, - * } $mappingArray - */ - public static function fromMappingArray(array $mappingArray): self - { - $mapping = new self($mappingArray['name'], $mappingArray['referencedColumnName']); - foreach ($mappingArray as $key => $value) { - if (property_exists($mapping, $key) && $value !== null) { - $mapping->$key = $value; - } - } - - return $mapping; - } - - /** @return list */ - public function __sleep(): array - { - $serialized = []; - - foreach (['name', 'fieldName', 'onDelete', 'columnDefinition', 'referencedColumnName', 'options'] as $stringOrArrayKey) { - if ($this->$stringOrArrayKey !== null) { - $serialized[] = $stringOrArrayKey; - } - } - - foreach (['unique', 'quoted', 'nullable'] as $boolKey) { - if ($this->$boolKey !== null) { - $serialized[] = $boolKey; - } - } - - return $serialized; - } -} -- cgit v1.2.3