silverstripe-framework/tests/php/ORM/ManyManyListTest/Secondary.php

22 lines
578 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?php
namespace SilverStripe\ORM\Tests\ManyManyListTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject;
/**
* A data object that implements the secondary side of a many_many when extended by
* ManyManyListTest_IndirectSecondaryExtension.
*/
class Secondary extends DataObject implements TestOnly
{
private static $table_name = 'ManyManyListTest_Secondary';
2016-10-14 03:30:05 +02:00
// Possibly not required, but want to simulate a real test failure case where
// database tables are present.
private static $db = array(
'Title' => 'Varchar(255)'
);
2016-10-14 03:30:05 +02:00
}