OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce A managed+dirty entity [] can not be scheduled for insertion.

This topic contains 1 reply, has 2 voices, and was last updated by  Dmitriy Pasechnik 6 years, 2 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
  • #32680

    zhex900
    Participant

    Hi,

    I think this is more of a doctrine question. I made a migration script to load products with images and prices. The source code is here.

    https://github.com/zhex900/ot-theme/blob/master/MENA/Bundle/MENALoadDataBundle/Migrations/Data/ORM/LoadProductData.php

    This script works fine most of the time. But it gives an error when there is a large load over 150 products or even 5 products with multiple images.

    This is the error:
    [Doctrine\ORM\ORMInvalidArgumentException]
    A managed+dirty entity [] can not be scheduled for insertion.

    This is thrown when I try to persist product. See here.

    Any ideas why?

    Anything to do with this post?

    Thank you

    Jake He

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

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

Back to top