| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | 2 | public static function fromInverseSideUsage( |
|
| 12 | string $entityName, |
||
| 13 | string $associationFieldName |
||
| 14 | ) : self { |
||
| 15 | 2 | return new self( |
|
| 16 | 2 | "You cannot search for the association field '" . $entityName . '#' . $associationFieldName . "', " . |
|
| 17 | 2 | 'because it is the inverse side of an association. Find methods only work on owning side associations.' |
|
| 18 | ); |
||
| 21 |