@@ -76,18 +76,18 @@ public function execute(int $id, MetadataInterface $data): void
7676
7777 $ updatedAsset = $ this ->assetFactory ->create (
7878 [
79+ 'id ' => $ asset ->getId (),
7980 '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 (),
8185 'width ' => $ asset ->getWidth (),
8286 'height ' => $ asset ->getHeight (),
8387 'size ' => $ asset ->getSize (),
84- 'id ' => $ asset ->getId (),
85- 'title ' => $ data ->getTitle () ?? $ asset ->getTitle (),
86- 'description ' => $ data ->getDescription () ?? $ asset ->getDescription (),
87- 'source ' => $ asset ->getSource (),
8888 'hash ' => $ asset ->getHash (),
89- 'createdAt ' => $ asset ->getCreatedAt (),
90- 'updatedAt ' => $ asset ->getUpdatedAt ()
89+ 'contentType ' => $ asset ->getContentType (),
90+ 'source ' => $ asset ->getSource ()
9191 ]
9292 );
9393
0 commit comments