Source of file PolymorphicIntermediary.php
Size: 0,990 Bytes - Last Modified: 2021-12-23T10:35:47+00:00
/var/www/docs.ssmods.com/process/src/tests/php/PolymorphicVersionedOwnershipTest/PolymorphicIntermediary.php
12345678910111213141516171819202122232425262728293031323334353637383940414243 | <?php namespace SilverStripe\Versioned\Tests\PolymorphicVersionedOwnershipTest; use SilverStripe\Dev\TestOnly; use SilverStripe\ORM\DataObject; use SilverStripe\Versioned\RecursivePublishable; use SilverStripe\Versioned\Versioned; /** * Sits between polymorphicowner and polymorphicowned * * @mixin Versioned|RecursivePublishable */ class PolymorphicIntermediary extends DataObject implements TestOnly { private static $table_name = 'VersionedTest_PolymorphicIntermediary'; private static $extensions = [ Versioned::class, ]; private static $db = [ 'Title' => 'Varchar', ]; private static $has_many = [ 'TheOwners' => PolymorphicOwner::class, 'TheOwned' => PolymorphicOwned::class, ]; private static $owns = [ 'TheOwned', ]; /** * Explicit owned_by required since PolymorphicOwner.owns doesn't point back to this directly */ private static $owned_by = [ 'TheOwners', ]; } |