function onBeforeWrite()
 {
     parent::onBeforeWrite();
     $this->ProductVariationID = $this->_productVariationID;
     $this->ProductVariationVersion = $this->_productVariationVersion;
 }
 function onBeforeWrite()
 {
     parent::onBeforeWrite();
 }
 function onBeforeWrite()
 {
     parent::onBeforeWrite();
     if ($parentOrderItem = $this->ParentOrderItem()) {
         if ($buyable = $parentOrderItem->Buyable()) {
             $this->Sort = $buyable->ID + 1;
         }
     }
 }