Skip to content
Snippets Groups Projects

Issue #3266025: Fix an error: Object of class Aws\Api\DateTimeResult could not be converted to int in Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::castValue()

Merged Issue #3266025: Fix an error: Object of class Aws\Api\DateTimeResult could not be converted to int in Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::castValue()
1 file
+ 9
6
Compare changes
  • Side-by-side
  • Inline
@@ -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());
Loading