Exporting multi value referenced eck entities only exports last one

Created on 19 July 2024, 9 months ago
Updated 16 August 2024, 8 months ago

Thank you for a very handy module.

I have two eck entities that I want to export. The first entity, pp_paragraph references multiple pp_sentence entities. When I try to export pp_paragraph with references, and then i open up the exported json file, I see text from the very last referenced pp_sentence, but none of the others (and there are several) are there. I can export the pp_sentence entities separately, but I then need to readd them to the pp_paragraph entity manually.

I suspect that either I'm doing something wrong, or there is some issue specifically with eck entity references.

Please advise.

πŸ’¬ Support request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States davemaxg

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @davemaxg
  • πŸ‡©πŸ‡ͺGermany mkalkbrenner πŸ‡©πŸ‡ͺ

    Can you test 2.1.0-dev?

  • πŸ‡ΊπŸ‡ΈUnited States davemaxg

    Thank you @mkalkbrenner, this new version is working for me. :) Thanks to everyone for such a helpful and easy to use module.

    I did notice that it also exported the author and the file entity representing the profile picture of the author. This seems possibly too aggressive, but I'm not sure as I'm only thinking about my current use case. I was thinking that perhaps a simple solution to this might be to have a checkbox to not follow author references. My user entity has some reference fields of it's own, so I'm not sure why it only pulled the file entity reference.

  • πŸ‡©πŸ‡ͺGermany mkalkbrenner πŸ‡©πŸ‡ͺ

    The 2.1.x branch has such a config option.

  • Status changed to Fixed 8 months ago
  • πŸ‡©πŸ‡ͺGermany mkalkbrenner πŸ‡©πŸ‡ͺ

    Using drush, you can exclude some entity types via comand line option.
    And you can subscribe to an event to to modify or skip an entity.

  • πŸ‡ΊπŸ‡ΈUnited States davemaxg

    This is great. Really useful module. :)

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024