| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | 2 | public function getSolution(): ?string |
|
| 27 | { |
||
| 28 | 2 | $fields = implode('`, `', $this->entity->getFields()->getNames()); |
|
| 29 | |||
| 30 | 2 | return sprintf( |
|
| 31 | 2 | "Discriminator column is required for Single Table Inheritance schema.\n" . |
|
| 32 | 2 | 'You have to specify one of the defined fields of the `%s` role: `%s`', |
|
| 33 | 2 | (string) ($this->entity->getRole() ?? $this->entity->getClass()), |
|
| 34 | $fields, |
||
| 35 | ); |
||
| 38 |