Skip to content

Commit 19b7169

Browse files
committed
mark getRequiredOptions()/getDefaultOption() of UniqueEntity as deprecated
1 parent 36d8d5d commit 19b7169

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntity.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ public function __construct(
9191
$this->identifierFieldNames = $identifierFieldNames ?? $this->identifierFieldNames;
9292
}
9393

94+
/**
95+
* @deprecated since Symfony 7.4
96+
*/
9497
public function getRequiredOptions(): array
9598
{
9699
return ['fields'];
@@ -109,6 +112,9 @@ public function getTargets(): string|array
109112
return self::CLASS_CONSTRAINT;
110113
}
111114

115+
/**
116+
* @deprecated since Symfony 7.4
117+
*/
112118
public function getDefaultOption(): ?string
113119
{
114120
return 'fields';

0 commit comments

Comments
 (0)