2008-10-29 22:07:17 +01:00
|
|
|
<?php
|
2016-08-19 00:51:35 +02:00
|
|
|
|
2016-10-14 03:30:05 +02:00
|
|
|
namespace SilverStripe\i18n\Tests\i18nTest;
|
|
|
|
|
2016-08-19 00:51:35 +02:00
|
|
|
use SilverStripe\Dev\TestOnly;
|
2016-10-14 03:30:05 +02:00
|
|
|
use SilverStripe\Security\Group;
|
|
|
|
|
|
|
|
class MySubObject extends MyObject implements TestOnly
|
|
|
|
{
|
|
|
|
private static $table_name = 'i18nTest_MySubObject';
|
|
|
|
|
2013-03-21 19:48:54 +01:00
|
|
|
private static $db = array(
|
2008-10-29 22:07:17 +01:00
|
|
|
'SubProperty' => 'Varchar',
|
|
|
|
);
|
2014-08-15 08:53:05 +02:00
|
|
|
|
2013-03-21 19:48:54 +01:00
|
|
|
private static $has_many = array(
|
2016-10-14 03:30:05 +02:00
|
|
|
'SubRelation' => Group::class
|
2008-10-29 22:07:17 +01:00
|
|
|
);
|
2014-08-15 08:53:05 +02:00
|
|
|
|
2013-03-21 19:48:54 +01:00
|
|
|
private static $singular_name = "My Sub Object";
|
2014-08-15 08:53:05 +02:00
|
|
|
|
2013-03-21 19:48:54 +01:00
|
|
|
private static $plural_name = "My Sub Objects";
|
2008-10-29 22:07:17 +01:00
|
|
|
}
|