/**
  * Removes the value object from the storage.
  *
  * @return void
  * @since 5.1
  */
 public function delete($id = false)
 {
     $id = $id != false ? $id : $this->valueObject->getValue($this->config->getIdField());
     if (!$id) {
         return;
     }
     $dar = $this->update('DELETE FROM ' . $this->config->getTable() . ' WHERE ' . $this->config->getIdField() . '=' . $id);
 }
 /**
  * Sets a value object as an array.
  *
  * Setting a value object as array means passing value object fields and
  * theirs value inside an associative array, instead of using a
  * ModuleValueObject class.
  *
  * This is useful when transferring a value object using remote calls.
  *
  * @since 5.1
  * @return boolean
  */
 public function moduleSetVA($valueArray)
 {
     $this->valueObject->setValueArray($valueArray);
     return true;
 }