@@ -41,9 +41,9 @@ |
||
| 41 | 41 | $name = $directive->name->value; |
| 42 | 42 | |
| 43 | 43 | switch ($name) { |
| 44 | - case 'belongToMany': |
|
| 45 | - case 'morphedByMany': |
|
| 46 | - throw new DirectiveException("Foreign keys cannot be used with many-to-many-relationships. Check field: " . $field->name); |
|
| 44 | + case 'belongToMany': |
|
| 45 | + case 'morphedByMany': |
|
| 46 | + throw new DirectiveException("Foreign keys cannot be used with many-to-many-relationships. Check field: " . $field->name); |
|
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | |