Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public static function cannotModifyInverse(Model $model, $fieldKey) |
||
15 | { |
||
16 | return new self( |
||
17 | sprintf( |
||
18 | 'Oops! The requested action for model type "%s" is invalid. The relationship field "%s" is inversed (not owned) and cannot be modified.', |
||
19 | $model->getType(), |
||
20 | $fieldKey |
||
21 | ), |
||
22 | 400, |
||
23 | __FUNCTION__ |
||
24 | ); |
||
25 | } |
||
26 | public static function invalid(Model $model, $message = null) |
||
39 |