karls / data-mapper-bundle
Data Mapping Bundle for refactoring different scenarios
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- mashape/unirest-php: ^3.0
- unite-cms/core-bundle: >=0.8
This package is auto-updated.
Last update: 2025-03-15 01:06:19 UTC
README
Mapping old data JSON to new data JSON in unite-cms
Installation
via composer
composer require karls/data-mapper-bundle
in config/bundles.php
Karls\DataMapperBundle\KarlsDataMapperBundle::class => ['all' => true],
Usage
Image Mapping (S3 UUID fix)
Fixes S3 Storage problem, where the image is not save with an UUID.
karls@local:~/unitecms$ php bin/console karls:image-mapping
When you run this command you will be prompted to select the content_type
where the images are located. You can use your arrow keys or simply typing in the content type name.
Please select the content_type: : [1] Formulare [3] Test [4] Bilder [5] Reference > Bilder
After submitting the content_type
you will be asked which of the following types should be searched and refactored. You can use your arrow keys or type in multiple types at once (,
comma separates the types).
Please select the type/s which to refactor: [0] mediaimage [1] text [2] image > mediaimage,image
Now the Command should execute and search for images that have no UUID and fixes them.
Data Mapping
Fixes Problems in content, where some data was changed and now needs to be renamed or inserted.
php bin/console karls:data-mapping