| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function loadClassMetadata(LoadClassMetadataEventArgs $args) |
||
| 36 | { |
||
| 37 | if (false === $this->isStrict) { |
||
| 38 | return; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** @var \Doctrine\ORM\Mapping\ClassMetadata $classMetadata */ |
||
| 42 | $classMetadata = $args->getClassMetadata(); |
||
| 43 | |||
| 44 | if (UrlAlias::class === $classMetadata->getName()) { |
||
| 45 | $classMetadata->fieldMappings['public_url']['unique'] = true; |
||
| 46 | } |
||
| 49 |