silverstripe-framework/tests/php/ORM/DataExtensionTest/ContactRole.php

28 lines
631 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?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';
2016-10-14 03:30:05 +02:00
private static $db = array(
'Website' => 'Varchar',
'Phone' => 'Varchar(255)',
);
2016-10-14 03:30:05 +02:00
private static $has_many = array(
'RelatedObjects' => RelatedObject::class
);
2016-10-14 03:30:05 +02:00
private static $defaults = array(
'Phone' => '123'
);
2016-10-14 03:30:05 +02:00
private static $api_access = true;
2016-10-14 03:30:05 +02:00
}