synolia / oroneo

Other
11 stars 5 forks source link

Cannot import multi-enum options #11

Closed gplanchat closed 7 years ago

gplanchat commented 7 years ago

An InvalidArgumentException is thrown by the BAP when importing manyToMany enum is thrown with the message $enumCode must not be empty..

It is sent here : https://github.com/orocrm/platform/blob/master/src/Oro/Bundle/EntityExtendBundle/Tools/ExtendHelper.php#L272

At this point https://github.com/synolia/oroneo/blob/master/ImportExport/Serializer/OptionSerializer.php#L45

Here is the config I have in $config variable :

object(Oro\Bundle\EntityConfigBundle\Config\Config) {
  'id': object(Oro\Bundle\EntityConfigBundle\Config\Id\FieldConfigId) {
    'scope': 'enum'
    'className': 'Oro\\Bundle\\ProductBundle\\Entity\\Product'
    'fieldName': 'foo_field'
    'fieldType': 'manyToMany'
  }
  'values': []
}
Djamy commented 7 years ago

We are working on this. The fix will be released next week if everything is OK for us.

Djamy commented 7 years ago

This should be resolved with our last commit; feel free to try and to open another one if you encounter any other issue.