This topic contains 6 replies, has 4 voices, and was last updated by Rio 6 years ago.
- Topic
Hello. I have the issue with relationships.
12345678910111213141516[2018-01-31 09:24:57] app.ERROR: Consuming interrupted by exception. "A new entity was found through the relationship 'Oro\Bundle\UserBundle\Entity\User#organization' that was not configured to cascade persist operations for entity: #CompanyName To solvethis issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={"persist"})." {"exception":"[object] (Doctrine\\ORM\\ORMInvalidArgumentException(code: 0): A new entity was found through the relationship 'Oro\\Bundle\\UserBundle\\Entity\\User#organization' that was not configured to cascade persist operations for entity: #CompanyName . To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={\"persist\"}). at /var/www/html/sitehost/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:92)"} {"processor":"Oro\\Bundle\\ImapBundle\\Async\\ClearInactiveMailboxMessageProcessor","message_id":"oro.5a7187e26c4041.61756919","message_body":"[]","message_properties":{"oro.message_queue.client.topic_name":"oro.imap.clear_inactive_mailbox","oro.message_queue.client.processor_name":"oro_imap.async.clear_inactive_mailbox_message_processor","oro.message_queue.client.queue_name":"oro.default","oro.security.token":"organizationId=1;userId=3;userClass=Oro\\Bundle\\UserBundle\\Entity\\User;roles=ROLE_ADMINISTRATOR,ROLE_5A69BF61E15D2","oro-redeliver-count":3},"message_headers":{"content_type":null,"message_id":"oro.5a7187e26c4041.61756919","timestamp":0},"message_priority":0,"job_id":4551,"job_name":"oro.imap.clear_inactive_mailbox","job_data":[]}[2018-01-31 09:24:57] console.ERROR: An error occurred while running command "'oro:message-queue:consume' --env=prod --no-debug". A new entity was found through the relationship 'Oro\Bundle\UserBundle\Entity\User#organization' that was not configured to cascade persist operations for entity: #CompanyName. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={"persist"}). {"exit_code":0,"exception":"[object] (Doctrine\\ORM\\ORMInvalidArgumentException(code: 0): A new entity was found through the relationship 'Oro\\Bundle\\UserBundle\\Entity\\User#organization' that was not configured to cascade persist operations for entity: #CompanyName. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={\"persist\"}). at /var/www/html/hostname/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:92)","arguments":{"command":"oro:message-queue:consume"},"options":{"env":"prod","no-debug":true}} []i understand what is going, but cant understand where and why its can be fixed. Is somebody from develop team can explain me why its happens and where i can find the reasons?
The forum ‘OroCRM’ is closed to new topics and replies.