TheDMSGroup / mautic-contact-client

Create custom integrations without writing code, like having your own Zapier.
GNU General Public License v3.0
95 stars 33 forks source link

[ENG-448] fixes persist issue #125

Closed cykonetic closed 6 years ago

cykonetic commented 6 years ago

[2018-08-08 21:17:43] mautic.ERROR: CAMPAIGN: A new entity was found through the relationship 'MauticPlugin\MauticContactClientBundle\Entity\Stat#contactClient' that was not configured to cascade persist operations for entity: MauticPlugin\MauticContactClientBundle\Entity\ContactClient with ID #49. 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"}). [] [] [2018-08-08 21:17:44] mautic.ERROR: CAMPAIGN: The EntityManager is closed. [] []

removed ManyToOne relationship, rcreated as a named field, and added setter for BC, getter unused, but added for convenience. ContactClientModel line 222 is cause, although not certain which caller. I would guess FilePayload line 870