silverstripe-framework/tests/php/ORM/DatabaseTest/MyObject.php
2016-12-19 16:08:19 +13:00

19 lines
450 B
PHP

<?php
namespace SilverStripe\ORM\Tests\DatabaseTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\Connect\MySQLSchemaManager;
use SilverStripe\ORM\DataObject;
class MyObject extends DataObject implements TestOnly
{
private static $table_name = 'DatabaseTest_MyObject';
private static $create_table_options = array(MySQLSchemaManager::ID => 'ENGINE=InnoDB');
private static $db = array(
'MyField' => 'Varchar'
);
}