silverstripe-framework/tests/php/ORM/DataObjectTest.yml

148 lines
4.8 KiB
YAML
Raw Normal View History

2016-10-14 03:30:05 +02:00
SilverStripe\ORM\Tests\DataObjectTest\Sortable:
numeric1:
Sort: 0
Name: steven
numeric2:
Sort: -1
Name: bonny
numeric3:
Sort: 1
Name: sam
numeric4:
Sort: -2
Name: Bob
numeric5:
Sort: 2
Name: jane
numeric6:
Sort: -10
Name: Steve
numeric7:
Sort: 10
Name: John
2016-10-14 03:30:05 +02:00
SilverStripe\ORM\Tests\DataObjectTest\EquipmentCompany:
equipmentcompany1:
Name: Company corp
equipmentcompany2:
Name: 'Team co.'
2016-10-14 03:30:05 +02:00
SilverStripe\ORM\Tests\DataObjectTest\SubEquipmentCompany:
subequipmentcompany1:
Name: John Smith and co
2016-10-14 03:30:05 +02:00
SilverStripe\ORM\Tests\DataObjectTest\Team:
team1:
Title: Team 1
2016-10-14 03:30:05 +02:00
Sponsors:
- =>SilverStripe\ORM\Tests\DataObjectTest\EquipmentCompany.equipmentcompany1
- =>SilverStripe\ORM\Tests\DataObjectTest\EquipmentCompany.equipmentcompany2
EquipmentSuppliers: =>SilverStripe\ORM\Tests\DataObjectTest\EquipmentCompany.equipmentcompany2
team2:
Title: Team 2
2016-10-14 03:30:05 +02:00
Sponsors:
- =>SilverStripe\ORM\Tests\DataObjectTest\EquipmentCompany.equipmentcompany2
- =>SilverStripe\ORM\Tests\DataObjectTest\SubEquipmentCompany.subequipmentcompany1
EquipmentSuppliers:
- =>SilverStripe\ORM\Tests\DataObjectTest\EquipmentCompany.equipmentcompany1
- =>SilverStripe\ORM\Tests\DataObjectTest\EquipmentCompany.equipmentcompany2
team3:
Title: Team 3
2016-10-14 03:30:05 +02:00
SilverStripe\ORM\Tests\DataObjectTest\Player:
captain1:
FirstName: Captain
Surname: Zookeeper
ShirtNumber: 007
2016-10-14 03:30:05 +02:00
FavouriteTeam: =>SilverStripe\ORM\Tests\DataObjectTest\Team.team1
Teams: =>SilverStripe\ORM\Tests\DataObjectTest\Team.team1
FoundingTeams: =>SilverStripe\ORM\Tests\DataObjectTest\Team.team1
IsRetired: 1
captain2:
FirstName: Captain 2
Surname: Aaron
2016-10-14 03:30:05 +02:00
Teams: =>SilverStripe\ORM\Tests\DataObjectTest\Team.team2
FoundingTeams: =>SilverStripe\ORM\Tests\DataObjectTest\Team.team2
player1:
FirstName: Player 1
player2:
FirstName: Player 2
2016-10-14 03:30:05 +02:00
Teams:
- =>SilverStripe\ORM\Tests\DataObjectTest\Team.team1
- =>SilverStripe\ORM\Tests\DataObjectTest\Team.team2
SilverStripe\ORM\Tests\DataObjectTest\SubTeam:
subteam1:
Title: Subteam 1
SubclassDatabaseField: Subclassed 1
ExtendedDatabaseField: Extended 1
2016-10-14 03:30:05 +02:00
ParentTeam: =>SilverStripe\ORM\Tests\DataObjectTest\Team.team1
Sponsors:
- =>SilverStripe\ORM\Tests\DataObjectTest\EquipmentCompany.equipmentcompany1
- =>SilverStripe\ORM\Tests\DataObjectTest\EquipmentCompany.equipmentcompany2
EquipmentSuppliers: =>SilverStripe\ORM\Tests\DataObjectTest\EquipmentCompany.equipmentcompany1
subteam2_with_player_relation:
Title: Subteam 2
SubclassDatabaseField: Subclassed 2
2016-10-14 03:30:05 +02:00
ExtendedHasOneRelationship: =>SilverStripe\ORM\Tests\DataObjectTest\Player.player1
subteam3_with_empty_fields:
Title: Subteam 3
2016-10-14 03:30:05 +02:00
SilverStripe\ORM\Tests\DataObjectTest\TeamComment:
comment1:
Name: Joe
Comment: This is a team comment by Joe
2016-10-14 03:30:05 +02:00
Team: =>SilverStripe\ORM\Tests\DataObjectTest\Team.team1
comment2:
Name: Bob
Comment: This is a team comment by Bob
2016-10-14 03:30:05 +02:00
Team: =>SilverStripe\ORM\Tests\DataObjectTest\Team.team1
comment3:
Name: Phil
Comment: Phil is a unique guy, and comments on team2
2016-10-14 03:30:05 +02:00
Team: =>SilverStripe\ORM\Tests\DataObjectTest\Team.team2
SilverStripe\ORM\Tests\ManyManyListTest\Product:
2016-05-10 16:56:15 +02:00
producta:
Title: 'Product A'
productb:
Title: 'Product B'
2016-10-14 03:30:05 +02:00
RelatedProducts: =>SilverStripe\ORM\Tests\ManyManyListTest\Product.producta
SilverStripe\ORM\Tests\ManyManyListTest\Category:
2016-05-10 16:56:15 +02:00
categorya:
Title: 'Category A'
2016-10-14 03:30:05 +02:00
Products:
- =>SilverStripe\ORM\Tests\ManyManyListTest\Product.producta
- =>SilverStripe\ORM\Tests\ManyManyListTest\Product.productb
2016-05-12 17:05:54 +02:00
comment1:
Name: Joe
Comment: This is a team comment by Joe
2016-10-14 03:30:05 +02:00
Team: =>SilverStripe\ORM\Tests\DataObjectTest\Team.team1
2016-05-12 17:05:54 +02:00
comment2:
Name: Bob
Comment: This is a team comment by Bob
2016-10-14 03:30:05 +02:00
Team: =>SilverStripe\ORM\Tests\DataObjectTest\Team.team1
2016-05-12 17:05:54 +02:00
comment3:
Name: Phil
Comment: Phil is a unique guy, and comments on team2
2016-10-14 03:30:05 +02:00
Team: =>SilverStripe\ORM\Tests\DataObjectTest\Team.team2
SilverStripe\ORM\Tests\DataObjectTest\Fan:
fan1:
Name: Damian
Email: damian@thefans.com
2016-10-14 03:30:05 +02:00
Favourite: =>SilverStripe\ORM\Tests\DataObjectTest\Team.team1
fan2:
Name: Stephen
2016-10-14 03:30:05 +02:00
Favourite: =>SilverStripe\ORM\Tests\DataObjectTest\Player.player1
SecondFavourite: =>SilverStripe\ORM\Tests\DataObjectTest\Team.team2
fan3:
Name: Richard
Email: richie@richers.com
2016-10-14 03:30:05 +02:00
Favourite: =>SilverStripe\ORM\Tests\DataObjectTest\Team.team1
fan4:
Name: Mitch
2016-10-14 03:30:05 +02:00
Favourite: =>SilverStripe\ORM\Tests\DataObjectTest\SubTeam.subteam1
fan5:
Name: Hamish
Email: ''
2016-10-14 03:30:05 +02:00
SilverStripe\ORM\Tests\DataObjectTest\Company:
company1:
Name: Company corp
2016-10-14 03:30:05 +02:00
Owner: =>SilverStripe\ORM\Tests\DataObjectTest\Player.player1
company1:
Name: 'Team co.'
2016-10-14 03:30:05 +02:00
Owner: =>SilverStripe\ORM\Tests\DataObjectTest\Player.player2