SilverStripe\Versioned\Tests\VersionedOwnershipTest\CustomRelation
Object which is owned via a custom PHP method rather than DB relation
Synopsis
class CustomRelation
extends DataObject
implements
TestOnly
{
- // members
- private static array $extensions = ;
- private static string $table_name = 'VersionedOwnershipTest_CustomRelation';
- private static array $db = ;
- private static array $owned_by = ;
- // methods
- public DataList Pages()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Implements
- SilverStripe\Dev\TestOnly
Members
private
- $db
- $extensions
- $owned_by
- $table_name
Methods
public
- Pages() — All pages with the same number. E.g. 'Page 1' owns 'Custom 1'