silverstripe-framework/tests/php/ORM/DecimalTest/TestObject.php

24 lines
546 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?php
namespace SilverStripe\ORM\Tests\DecimalTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject;
class TestObject extends DataObject implements TestOnly
{
private static $table_name = 'DecimalTest_DataObject';
2016-10-14 03:30:05 +02:00
private static $db = [
'Name' => 'Varchar',
'MyDecimal1' => 'Decimal',
'MyDecimal2' => 'Decimal(5,3,2.5)',
'MyDecimal3' => 'Decimal(4,2,"Invalid default value")',
'MyDecimal4' => 'Decimal'
];
2016-10-14 03:30:05 +02:00
private static $defaults = [
'MyDecimal4' => 4
];
2016-10-14 03:30:05 +02:00
}