@@ -76,18 +76,18 @@ public function execute(int $id, MetadataInterface $data): void
76
76
77
77
$ updatedAsset = $ this ->assetFactory ->create (
78
78
[
79
+ 'id ' => $ asset ->getId (),
79
80
'path ' => $ asset ->getPath (),
80
- 'contentType ' => $ asset ->getContentType (),
81
+ 'title ' => $ data ->getTitle () ?? $ asset ->getTitle (),
82
+ 'description ' => $ data ->getDescription () ?? $ asset ->getDescription (),
83
+ 'createdAt ' => $ asset ->getCreatedAt (),
84
+ 'updatedAt ' => $ asset ->getUpdatedAt (),
81
85
'width ' => $ asset ->getWidth (),
82
86
'height ' => $ asset ->getHeight (),
83
87
'size ' => $ asset ->getSize (),
84
- 'id ' => $ asset ->getId (),
85
- 'title ' => $ data ->getTitle () ?? $ asset ->getTitle (),
86
- 'description ' => $ data ->getDescription () ?? $ asset ->getDescription (),
87
- 'source ' => $ asset ->getSource (),
88
88
'hash ' => $ asset ->getHash (),
89
- 'createdAt ' => $ asset ->getCreatedAt (),
90
- 'updatedAt ' => $ asset ->getUpdatedAt ()
89
+ 'contentType ' => $ asset ->getContentType (),
90
+ 'source ' => $ asset ->getSource ()
91
91
]
92
92
);
93
93
0 commit comments