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

24 lines
465 B
PHP
Raw Permalink 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;
use SilverStripe\ORM\ManyManyList;
2016-10-14 03:30:05 +02:00
/**
* @method ManyManyList Products()
*/
2016-10-14 03:30:05 +02:00
class Category extends DataObject implements TestOnly
{
private static $table_name = 'ManyManyListTest_Category';
2016-10-14 03:30:05 +02:00
private static $db = [
'Title' => 'Varchar'
];
2016-10-14 03:30:05 +02:00
private static $many_many = [
'Products' => Product::class
];
2016-10-14 03:30:05 +02:00
}