public function save()
{
$this->db->Execute("INSERT INTO farm_role_storage_devices SET\n farm_role_id = ?,\n server_index = ?,\n storage_config_id = ?,\n env_id = ?,\n cloud_location = ?,\n config = ?,\n placement = ?,\n storage_id = ?,\n status = ?\n ON DUPLICATE KEY UPDATE config = ?, status = ?, placement = ?\n ", array($this->farmRoleId, $this->serverIndex, $this->storageConfigId, $this->envId, $this->cloudLocation, @json_encode($this->config), $this->placement, $this->storageId, $this->status, @json_encode($this->config), $this->status, $this->placement));
return $this;
}