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
|
|
|
|
{
|
2020-04-20 19:58:09 +02:00
|
|
|
private static $db = [
|
2017-06-28 19:23:38 +02:00
|
|
|
'Name' => 'Varchar(100)',
|
2020-04-20 19:58:09 +02:00
|
|
|
];
|
2017-06-28 19:23:38 +02:00
|
|
|
|
2020-04-20 19:58:09 +02:00
|
|
|
private static $has_one = [
|
2017-06-28 19:23:38 +02:00
|
|
|
'Company' => Company::class,
|
2020-04-20 19:58:09 +02:00
|
|
|
];
|
2017-06-28 19:23:38 +02:00
|
|
|
|
2020-04-20 19:58:09 +02:00
|
|
|
private static $has_many = [
|
2017-06-28 19:23:38 +02:00
|
|
|
'CompanyCars' => CompanyCar::class,
|
2020-04-20 19:58:09 +02:00
|
|
|
];
|
2017-06-28 19:23:38 +02:00
|
|
|
}
|