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

19 lines
373 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 Company 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_many = [
2017-06-28 19:23:38 +02:00
'Employees' => Employee::class,
'CompanyCars' => CompanyCar::class,
];
2017-06-28 19:23:38 +02:00
}