Skip to content
Snippets Groups Projects
Commit 92410e47 authored by Yas Naoi's avatar Yas Naoi
Browse files

Issue #3266025 by yas, Xiaohua Guan: Fix an error: Object of class...

Issue #3266025 by yas, Xiaohua Guan: Fix an error: Object of class Aws\Api\DateTimeResult could not be converted to int in Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::castValue()
parent 39f009f6
No related branches found
No related tags found
4 merge requests!1316Issue #3310263: Release 4.5.0,!1260Issue #3307397: Release 4.4.0,!804Issue #3272190: Release 4.1.0,!697Issue #3266025: Fix an error: Object of class Aws\Api\DateTimeResult could not be converted to int in Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::castValue()
......@@ -234,13 +234,16 @@ class VolumeCreateForm extends AwsCloudContentForm {
return;
}
$entity->setVolumeId($result['VolumeId']);
$entity->setCreated($result['CreateTime']);
$entity->setState($result['State']);
$entity->setSnapshotName($this->getSnapshotName($entity->getCloudContext(), $entity->getSnapshotId(), $this->getModuleName($entity)));
$entity->setVolumeType($result['VolumeType']);
if(!($entity->setVolumeId($result['VolumeId'])
&& $entity->setCreated(strtotime($result['CreateTime']))
&& $entity->setState($result['State'])
&& $entity->setSnapshotName($this->getSnapshotName($entity->getCloudContext(), $entity->getSnapshotId(), $this->getModuleName($entity)))
&& $entity->setVolumeType($result['VolumeType'])
&& $entity->save())) {
$entity->save();
$this->processOperationErrorStatus($entity, 'created');
return;
}
$this->updateNameAndCreatedByTags($entity, $entity->getVolumeId());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment