silverstripe-framework/tests/php/ORM/HasManyListTest/Employee.php

22 lines
411 B
PHP
Raw Normal View History

2017-06-28 19:23:38 +02:00
<?php
namespace SilverStripe\ORM\Tests\HasManyListTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject;
class Employee extends DataObject implements TestOnly
{
private static $db = [
2017-06-28 19:23:38 +02:00
'Name' => 'Varchar(100)',
];
2017-06-28 19:23:38 +02:00
private static $has_one = [
2017-06-28 19:23:38 +02:00
'Company' => Company::class,
];
2017-06-28 19:23:38 +02:00
private static $has_many = [
2017-06-28 19:23:38 +02:00
'CompanyCars' => CompanyCar::class,
];
2017-06-28 19:23:38 +02:00
}