Recalculate total before saving to database.
public onBeforeWrite ( ) |
function onBeforeWrite() { parent::onBeforeWrite(); $this->ProductID = $this->_productID; $this->ProductVersion = $this->_productVersion; }
function onBeforeWrite() { parent::onBeforeWrite(); $this->ProductID = $this->_productID; $this->ProductVersion = $this->_productVersion; }