OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Programming Questions ImportExport problem with duplicate creation on cascading persist

This topic contains 0 replies, has 1 voice, and was last updated by  marc.roberts 5 years, 5 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
  • #33836


    This is my first fore into OroPlatform so if the question seems confusing then let me know. I have simplified the case for ease of understanding.

    We have an implementation where the import export is being used to create data in the system from a file similar to:


    in our converter this is correctly converted to an entity (sudocode):

    Make {
    protected $id;
    protected $name; // unique

    Vehicle {
    protected $id;
    protected $make; // Make Entity
    protected $model;
    protected $fuel;

    with cascading persistence the import fails as the Make “Audi” in this case would be duplicate when inserting into the database.

    At the moment the check for an existing entity occurs in the AddOrReplaceStrategy. Is there a way to tell the import that the make name is unique and should be created only once?

The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No