Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| DisableAutomappingBlobWorkaround | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| loadValidatorMetadata | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | /** |
| 5 | * See issue annotation is ignored for single inheritance |
| 6 | * https://github.com/symfony/symfony/issues/35399. |
| 7 | */ |
| 8 | |
| 9 | namespace Satag\AmicronEntityBundle\Traits; |
| 10 | |
| 11 | use Symfony\Component\Validator\Constraints as Assert; |
| 12 | use Symfony\Component\Validator\Mapping\ClassMetadata; |
| 13 | |
| 14 | trait DisableAutomappingBlobWorkaround |
| 15 | { |
| 16 | public static function loadValidatorMetadata(ClassMetadata $metadata): void |
| 17 | { |
| 18 | $metadata->addPropertyConstraint('bild', new Assert\DisableAutoMapping()); |
| 19 | } |
| 20 | } |