I have a plugin that devides some tags into groups, so each group can contain multiple tags but each tag only has one group. In the Tag-Class i defined the group like with a custom name (@ORM\Column(name="groupname")) but the custom name is being ignored.
Tagname and group are part of @Flow\Identity. Here is part of the model:
However, the problem is, that the custom column name still is group and therefor leads to some problems in the mysql-queries as GROUP has reserved meanings. Is there still something missing? Or is there a bug in Neos/Doctrine?
The class schema cache can sometime cause issues, so make sure that you empty all cache ./flow neos.flow:cache:flush --force and then create the migration again
Since the @ORM\Column(name=“xyz”) annotation seems to be ignored when calculating differences between domain model and database table, a possible workaround is:
Delete the property in the domain model
Generate a new migration
Add the property (with the new name) to the domain model