| 1 | <?php |
||
| 2 | |||
| 3 | namespace Dynamic\Staff\Model; |
||
| 4 | |||
| 5 | use Dynamic\Staff\Pages\StaffMember; |
||
| 6 | use SilverStripe\ORM\DataObject; |
||
| 7 | |||
| 8 | class StaffDepartment extends DataObject |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | private static $singular_name = 'Department'; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private static $plural_name = 'Departments'; |
||
|
0 ignored issues
–
show
|
|||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private static $table_name = 'StaffDepartment'; |
||
|
0 ignored issues
–
show
|
|||
| 24 | |||
| 25 | /** |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | private static $db = [ |
||
|
0 ignored issues
–
show
|
|||
| 29 | 'Title' => 'Varchar(255)', |
||
| 30 | ]; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var array |
||
| 34 | */ |
||
| 35 | private static $has_many = [ |
||
|
0 ignored issues
–
show
|
|||
| 36 | 'StaffMembers' => StaffMember::class, |
||
| 37 | ]; |
||
| 38 | } |
||
| 39 |