Updating group fields does not work
Anyone else having the same issue, when trying to update a field that's in a group, i'm always getting an error 500 and a QueryFailedError from the server
5 Replies
Hello @cAroed can you share your manifest file with a group ? You can paste the YAML in the conversation
Also, getting a weird internal error on manager entity:
[Nest] 32460 - 17/08/2025, 12:42:51 ERROR [ExceptionsHandler] Cannot read properties of undefined (reading 'tablePath')
TypeError: Cannot read properties of undefined (reading 'tablePath')
at C:\Projects\dlv3.2\dl-cms-server\node_modules\typeorm\query-builder\SelectQueryBuilder.js:1212:75
at Array.map (<anonymous>)
at SelectQueryBuilder.createJoinExpression (C:\Projects\dlv3.2\dl-cms-server\node_modules\typeorm\query-builder\SelectQueryBuildojects\dlv3.2\dl-cms-server\node_modules\manifest\dist\manifest\src\crud\services\crud.service.js:97:39)
@brunobuddy
Hello @cAroed I checked your manifest.yml file and the issue comes fromt the fact that the BelongToMany relationships only need to be declared in one side (the owning side). You just need to remove the "BelongsToMany" prop in the "DiscountRule" and it will work like a charm !
Nevertheless I think that it should not fail in that case so I am going to adapt Manifest to ignore the last declaration if the belongsToMany relationship is declared on both sides.
@brunobuddy Awesome ! Thanks for the insight !