silverstripe-framework/tests/php/ORM/DataExtensionTest/ContactRole.php
2016-11-23 19:25:12 +13:00

29 lines
584 B
PHP

<?php
namespace SilverStripe\ORM\Tests\DataExtensionTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataExtension;
use SilverStripe\ORM\Tests\DataExtensionTest\RelatedObject;
class ContactRole extends DataExtension implements TestOnly
{
private static $table_name = 'DataExtensionTest_ContactRole';
private static $db = array(
'Website' => 'Varchar',
'Phone' => 'Varchar(255)',
);
private static $has_many = array(
'RelatedObjects' => RelatedObject::class
);
private static $defaults = array(
'Phone' => '123'
);
private static $api_access = true;
}