mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-04 07:08:34 +02:00
commit
9b1211f071
@ -80,7 +80,7 @@ but also include information about when and how a record was published.
|
|||||||
:::php
|
:::php
|
||||||
$record = MyRecord::get()->byID(99); // stage doesn't matter here
|
$record = MyRecord::get()->byID(99); // stage doesn't matter here
|
||||||
$versions = $record->allVersions();
|
$versions = $record->allVersions();
|
||||||
echo $versions->First()->Version; // instance of Versioned_Versoin
|
echo $versions->First()->Version; // instance of Versioned_Version
|
||||||
|
|
||||||
### Writing Versions and Changing Stages
|
### Writing Versions and Changing Stages
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user