function onBeforeWrite() { parent::onBeforeWrite(); $this->ProductID = $this->_productID; $this->ProductVersion = $this->_productVersion; }