mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Versioned documentation typo (Thanks aragonne)
This commit is contained in:
parent
bed25a7a79
commit
58a2eb0155
@ -59,8 +59,8 @@ You can explicitly request a certain stage through various getters on the `Versi
|
|||||||
$liveRecords = Versioned::get_by_stage('MyRecord', 'Live');
|
$liveRecords = Versioned::get_by_stage('MyRecord', 'Live');
|
||||||
|
|
||||||
// Fetching a single record
|
// Fetching a single record
|
||||||
$stageRecord = Versioned::get_one_by_stage('MyRecord', 'Stage')->byID(99);
|
$stageRecord = Versioned::get_by_stage('MyRecord', 'Stage')->byID(99);
|
||||||
$liveRecord = Versioned::get_one_by_stage('MyRecord', 'Live')->byID(99);
|
$liveRecord = Versioned::get_by_stage('MyRecord', 'Live')->byID(99);
|
||||||
|
|
||||||
### Historical Versions
|
### Historical Versions
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user