OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce Question about Importing entities in ORO applications

This topic contains 1 reply, has 2 voices, and was last updated by  vshutko 6 years, 8 months ago.

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

  • Creator
    Topic
  • #31798

    o.z.muhsin
    Participant

    Assumme one would write an importing functionality just like the way the demo data is being imported.What would be the problem using this approach instead of using the platform approach i.e importexport.yml ?

    E.g Oro\Bundle\ProductBundle\Migrations\Data\Demo\ORM::load

    -> File being read
    -> Class object initialized and data filled in
    -> Flushing the entity

    I am asking this to clear things up as both approach have been used.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #31799

    vshutko
    Participant

    Demo data migrations are used to load data needed to demonstrate application features, they are not usable for import/export. But if you want use it for import the main problem is once migration is loaded it is marked as “executed” (see ‘oro_migrations_data’ table) and you can’t execute it once more. So use migrations only if you need to load main data (example of main data – list of countries) or demo data.

Viewing 1 replies (of 1 total)

The forum ‘OroCommerce’ is closed to new topics and replies.

Back to top