Source of file DataObjectAnnotatorTest_TeamChanged.php
Size: 1,625 Bytes - Last Modified: 2021-12-23T10:24:49+00:00
/var/www/docs.ssmods.com/process/src/tests/mock/DataObjectAnnotatorTest_TeamChanged.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 | <?php namespace SilverLeague\IDEAnnotator\Tests; use SilverStripe\Dev\TestOnly; use SilverStripe\ORM\DataObject; /** * Class DataObjectAnnotatorTest_Team * * @author Simon * @property string $Title The Team Name * @property int $VisitCount * @property string $ExtendedVarcharField * @property int $ExtendedIntField * @property int $CaptainID * @property int $HasOneRelationshipID * @property int $ExtendedHasOneRelationshipID * @method \SilverLeague\IDEAnnotator\Tests\Player Captain() This is the Boss * @method \SilverLeague\IDEAnnotator\Tests\Player HasOneRelationship() * @method \SilverLeague\IDEAnnotator\Tests\Player ExtendedHasOneRelationship() * @method \SilverStripe\ORM\DataList|\SilverLeague\IDEAnnotator\Tests\SubTeam[] SubTeams() * @method \SilverStripe\ORM\DataList|DataObjectAnnotatorTest_TeamComment[] Comments() * @method \SilverStripe\ORM\ManyManyList|\SilverLeague\IDEAnnotator\Tests\Player[] Players() * @mixin \SilverLeague\IDEAnnotator\Tests\Team_Extension This adds extra methods */ class TeamChanged extends DataObject implements TestOnly { private static $db = [ 'Title' => 'Varchar', 'Price' => 'Currency' ]; private static $has_one = [ "Captain" => Player::class, 'HasOneRelationship' => Player::class, ]; private static $has_many = [ 'SubTeams' => SubTeam::class, 'Comments' => TeamComment::class ]; private static $many_many = [ 'Players' => Player::class, 'SecondarySubTeams' => SubTeam::class, ]; public function SecondarySubTeams() { } } |