silverstripe-framework/tests/php/ORM/DatabaseTest/MyObject.php
2020-04-20 18:58:09 +01:00

23 lines
565 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 = [MySQLSchemaManager::ID => 'ENGINE=InnoDB'];
private static $db = [
'MyField' => 'Varchar',
'MyInt' => 'Int',
'MyFloat' => 'Float',
'MyDecimal' => 'Decimal',
'MyBoolean' => 'Boolean',
];
}