| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 53 | protected function setupCreateOperation() |
||
| 54 | { |
||
| 55 | CRUD::setValidation(StoreRequest::class); |
||
| 56 | CRUD::addFields([ |
||
| 57 | [ |
||
| 58 | // 1-n relationship |
||
| 59 | 'label' => 'Campus', |
||
| 60 | 'type' => 'select', |
||
| 61 | 'entity' => 'campus', |
||
| 62 | 'name' => 'campus_id', |
||
| 63 | 'attribute' => 'name', |
||
| 64 | ], |
||
| 65 | |||
| 66 | [ |
||
| 67 | 'name' => 'name', |
||
| 68 | 'label' => 'Name', |
||
| 69 | 'type' => 'text', |
||
| 70 | ], |
||
| 71 | |||
| 72 | [ |
||
| 73 | 'name' => 'capacity', |
||
| 74 | 'label' => 'Capacity', |
||
| 75 | 'type' => 'number', |
||
| 76 | ], |
||
| 85 |