Back to this thread after a fruitless tangent here, trying to fix what I thought might be the core foreign key problem…
This still looks most promising for next things to try, with additional clue here and this here. However this solution failed here and here explained why it fails.
Were fixes implemented in latest updates? I’ll try to update to 4.4.2 to see if that fixes the csv import issue.
Next day:
Starting the 4.4.2 upgrade process I found the suggestion to run php bin/console doctrine:schema:validate
. This gives me the following message:
`Mapping
[FAIL] The entity-class Mautic\DynamicContentBundle\Entity\DynamicContentLeadData mapping is invalid:
- The association Mautic\DynamicContentBundle\Entity\DynamicContentLeadData#dynamicContent refers to the inverse side field Mautic\DynamicContentBundle\Entity\DynamicContent#id which is not defined as association.
- The association Mautic\DynamicContentBundle\Entity\DynamicContentLeadData#dynamicContent refers to the inverse side field Mautic\DynamicContentBundle\Entity\DynamicContent#id which does not exist.
Database
[ERROR] The database schema is not in sync with the current mapping file.
`
This was raised as an issue here and is apparently also connected with the foreign key issue from my fruitless tangent here. What is the current status of this @escopecz @aerendir @DonGilbert @rcheesley ?
I don’t see a solution in that thread, but it has been closed as ‘stale’ - I’ll start googling and researching ‘unidirectional vs bidirectional association’ now, but am unlikely to come up with a solution for this on my own.