You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm using TypeORM, and there's a weird behavior when using an entity with a primary key not named "id". Adding a resource that has a relation to this entity will result in a success, but the resource wont be added at all.
Installed libraries and their versions
admin-bro: 3.4.0
admin-bro/express: 3.1.0
admin-bro/nestjs: 1.0.0
admin-bro/typeorm: 1.4.0
typeorm: 0.2.30
I guess you want to say "When adding a Photo, everything works properly. But when adding a Profile, you'll receive a success despite it not being added."
As is Profile the entity with primary key different from "id".
Same problem here. Editing those entities is throwing an error 'duplicate key value violates unique constraint 'table_pkey''
dziraf
transferred this issue from SoftwareBrothers/adminjs
Dec 28, 2021
Describe the bug
I'm using TypeORM, and there's a weird behavior when using an entity with a primary key not named "id". Adding a resource that has a relation to this entity will result in a success, but the resource wont be added at all.
Installed libraries and their versions
admin-bro: 3.4.0
admin-bro/express: 3.1.0
admin-bro/nestjs: 1.0.0
admin-bro/typeorm: 1.4.0
typeorm: 0.2.30
Schema
When adding a Profile, everything works properly. But when adding a Photo, you'll receive a success despite it not being added.
The text was updated successfully, but these errors were encountered: