Closed Rikkers closed 1 year ago
I will take a look. Tbh i find your migration slightly surprising:
the code which I use in the CI tests looks like the following:
authors: 'Author A, Author B'
title: 'Lorem ipsum'
release_info: 'Cracov 2012'
-
authors: 'Author 1, Author 2'
title: 'Lorem ipsum dolor sit amet'
release_info: 'R info abc'
My first step will be to check what we get when having the bundle generate a content-type-create and a content-create migrations...
I think I see what might be going on: on 17/11/2020, I added to the codebase "proper" support for the eZMatrix fieldType, which includes a uniform syntax for content/create - content/update yaml, and works across both the two different bundles implementing ezmatrix (the community and ee ones). That code was first released as part of 5.14.0.
Your migration's yml did work with older versions, but I never tested it properly, nor intended to support it - it just leaves it up to the eZ kernel to transform the array data into Value objects, and as such is not as stable/portable (because of the unfortunate situation with the two bundles).
I think a good way to improve the current situation is to
More updates (all of the changes will be in upcoming version 6.1):
Closing as 6.1 has been released. Feel free to open a new ticket if there are still issues
Seems currently it works fine. Thanks.
Hello,
When running migration containing ezmatrix field, it crashes with
Migration that was launched:
This migration worked fine on PHP 7.3 and
kaliop/ezmigrationbundle 5.11.0
Now running on PHP 7.4, ezplatform with
ezsystems/ezpublish-kernel v7.5.10
,kaliop/ezmigrationbundle 5.5.12
(but I see ezmatrix field handler ondev-master
looks the same),ezsystems/ez-matrix-bundle dev-master
From my personal "investigation", it looks like EzMatrix field handler has some issue in
hashToFieldValue
i.e. part for legacy field type should look like this:Probably
fieldValueToHash
would have to be updated, as migration generation of a content containing ezmatrix also fails