silverstripe-framework/tests/php/ORM/DatabaseTest/MyObject.php

23 lines
565 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?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';
2016-10-14 03:30:05 +02:00
private static $create_table_options = [MySQLSchemaManager::ID => 'ENGINE=InnoDB'];
2016-10-14 03:30:05 +02:00
private static $db = [
'MyField' => 'Varchar',
'MyInt' => 'Int',
'MyFloat' => 'Float',
'MyDecimal' => 'Decimal',
'MyBoolean' => 'Boolean',
];
2016-10-14 03:30:05 +02:00
}