Issue when importing risk analysis
Hi,
When trying to import risk analysis exported from an other instance of Monarc, the following error message appears and the import failed:
Une erreur est survenue sur api/client-anr/2/instances/import : Entity of type MonarcFO\Model\Entity\Threat is missing an assigned ID for field 'uuid'. The identifier generation strategy for this entity requires the ID field to be populated before EntityManager#persist() is called. If you want automatically generated identifiers instead you need to adjust the metadata mapping accordingly. (500)
I'm using the latest version of Monarc.
Import failed with JSON not with BIN format.
I'm wondering if the two issues are linked... (https://github.com/monarc-project/MonarcAppFO/issues/163) Seems the missing uuid field in Threats table is the common point. uuid field exist for Threat table in _cli database but not in _common database.
Should be corrected for a long time.