arad021/entity-already-exists-validation-constraint
最新稳定版本:1.0.1
Composer 安装命令:
composer require arad021/entity-already-exists-validation-constraint
包简介
Verify that your entity does not exists
README 文档
README
A small validator that verifies that an entity actually does not exist.
Install
composer require arad021/entity-already-exists-validation-constraint
Then register the services with:
# config/packages/arad021_entity_already_exists_validator.yaml services: Arad021\Validator\Constraint\EntityNotExistValidator: arguments: ['@doctrine.orm.entity_manager'] tags: [ 'validator.constraint_validator' ]
Note
The validator will not produce a violation when value is empty. This means that you should most likely use it in
combination with NotBlank.
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-11-15