forked from mirror/Part-DB.Part-DB-server
Moved custom validators from annotations to attributes
This commit is contained in:
parent
e5a14557a2
commit
930adaf439
27 changed files with 50 additions and 148 deletions
|
@ -27,9 +27,8 @@ use Symfony\Component\Validator\Constraint;
|
|||
/**
|
||||
* If a property is marked with this constraint, the choosen value (of type StructuralDBElement)
|
||||
* must NOT be marked as not selectable.
|
||||
*
|
||||
* @Annotation
|
||||
*/
|
||||
#[\Attribute(\Attribute::TARGET_PROPERTY)]
|
||||
class Selectable extends Constraint
|
||||
{
|
||||
public $message = 'validator.isSelectable';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue