| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | protected function setupListOperation() |
||
| 29 | { |
||
| 30 | CRUD::setColumns([ |
||
| 31 | [ |
||
| 32 | // 1-n relationship |
||
| 33 | 'label' => 'Campus', |
||
| 34 | 'type' => 'relationship', |
||
| 35 | 'name' => 'campus', |
||
| 36 | 'attribute' => 'name', |
||
| 37 | ], |
||
| 38 | |||
| 39 | [ |
||
| 40 | 'name' => 'name', |
||
| 41 | 'label' => 'Name', |
||
| 42 | 'type' => 'text', |
||
| 43 | ], |
||
| 44 | |||
| 45 | [ |
||
| 46 | 'name' => 'capacity', |
||
| 47 | 'label' => 'Capacity', |
||
| 48 | 'type' => 'number', |
||
| 49 | ], |
||
| 85 |