mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
24 lines
469 B
PHP
24 lines
469 B
PHP
|
<?php
|
||
|
|
||
|
namespace SilverStripe\ORM\Tests\CascadeDeleteTest;
|
||
|
|
||
|
use SilverStripe\Dev\TestOnly;
|
||
|
use SilverStripe\ORM\DataObject;
|
||
|
|
||
|
class ParentObject extends DataObject implements TestOnly
|
||
|
{
|
||
|
private static $table_name = 'CascadeDeleteTest_ParentObject';
|
||
|
|
||
|
private static $db = [
|
||
|
'Title' => 'Varchar',
|
||
|
];
|
||
|
|
||
|
private static $cascade_deletes = [
|
||
|
'Children'
|
||
|
];
|
||
|
|
||
|
private static $has_many = [
|
||
|
'Children' => ChildObject::class,
|
||
|
];
|
||
|
}
|