Sunnysideup\Ecommerce\Model\OrderItem::get_version
HACK: Versioned is BROKEN this method helps in fixing it.
Basically, in Versioned, you get a hard-coded error when you retrieve an older version of a DataObject. This method returns null if it does not exist. Idea is from Jeremy: https://github.com/burnbright/silverstripe-shop/blob/master/code/products/FixVersioned.php
Signature
public function get_version(string
$class,
int
$id,
int
$version )
Parameters
$class
— string$id
— int$version
— int
Returns
- DataObject