Skip to content

Conversation

@MarieMinasyan
Copy link
Contributor

Hi!

There is a problem in the ref data with translations import. They are ignored because the array converter didn't transform the flat array into a standard one, and in the updater no property "label-fr_FR" is found.

This PR fixes the issue.

use Pim\Component\Connector\ArrayConverter\ArrayConverterInterface;
use Pim\Component\Connector\ArrayConverter\FieldsRequirementChecker;

class ReferenceData implements ArrayConverterInterface
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing header ;)

Copy link
Collaborator

@mmetayer mmetayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MarieMinasyan : this issue was already fixed by #167, though only for PIM >= v2.1, plus your ArrayConverter seems nicer. Before we can merge, could you please add some specs and integration tests (you can take example on master branch)

@@ -0,0 +1,79 @@
<?php

namespace Pim\Bundle\CustomEntityBundle\ArrayConverter\FlatToStandard;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move to Pim\Bundle\CustomEntityBundle\Connector\ArrayConverter\FlatToStandard, that'll make merges easier (this has already been fixed in the master branch)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants