mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
de1494e3a8
API CHANGE: augmentSQL is now passed a DataQuery object from which query parameters can be extracted. API CHANGE: DataObjectDecorators that manipulate the query can now define augmentDataQueryCreation(). API CHANGE: The container class argument for DataObject::get() is deprecated. API CHANGE: DataObject::buildSQL() and DataObject::extendedSQL() are deprecated; just use DataObject::get() now. API CHANGE: DataObject::instance_get() and DataObject::instance_get_one() are deprecated, and can no longer be overloaded. API CHANGE: DataObject::buildDataObjectSet() is deprecated. API CHANGE: Cant't call manual manipulation methods on DataList such as insertFirst()
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
DataObjectTest_Team:
|
|
team1:
|
|
Title: Team 1
|
|
team2:
|
|
Title: Team 2
|
|
|
|
DataObjectTest_Player:
|
|
captain1:
|
|
FirstName: Captain
|
|
ShirtNumber: 007
|
|
FavouriteTeam: =>DataObjectTest_Team.team1
|
|
Teams: =>DataObjectTest_Team.team1
|
|
IsRetired: 1
|
|
captain2:
|
|
FirstName: Captain 2
|
|
Teams: =>DataObjectTest_Team.team2
|
|
player1:
|
|
FirstName: Player 1
|
|
player2:
|
|
FirstName: Player 2
|
|
Teams: =>DataObjectTest_Team.team1,=>DataObjectTest_Team.team2
|
|
|
|
DataObjectTest_SubTeam:
|
|
subteam1:
|
|
Title: Subteam 1
|
|
SubclassDatabaseField: Subclassed 1
|
|
ExtendedDatabaseField: Extended 1
|
|
subteam2_with_player_relation:
|
|
Title: Subteam 2
|
|
SubclassDatabaseField: Subclassed 2
|
|
ExtendedHasOneRelationship: =>DataObjectTest_Player.player1
|
|
subteam3_with_empty_fields:
|
|
Title: Subteam 3
|
|
|
|
DataObjectTest_TeamComment:
|
|
comment1:
|
|
Name: Joe
|
|
Comment: This is a team comment by Joe
|
|
Team: =>DataObjectTest_Team.team1
|
|
comment2:
|
|
Name: Bob
|
|
Comment: This is a team comment by Bob
|
|
Team: =>DataObjectTest_Team.team1
|
|
comment3:
|
|
Name: Phil
|
|
Comment: Phil is a unique guy, and comments on team2
|
|
Team: =>DataObjectTest_Team.team2
|