Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix reference data import with translations #170

Open
wants to merge 7 commits into
base: 2.0
Choose a base branch
from

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.

3 participants