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
i'am trying to use a many to many association with this adapter.
I use the sample with User and Pet models. One user can have many pets and one pets can have many owners
attributes: {
name:{
type:'string'
},
owners:{
collection:'user',
via:'pets'
}
}
};```
If i create a new User with no pet associated it works for the creation, but if i go to : http://localhost:1337/user/1
in order to get this user i get this error
> Details: Error: SELECT "pet"."name", "pet"."id", "pet"."createdAt", "pet"."updatedAt" FROM "pet" AS "pet" WHERE "pet"."id" IN ) LIMIT 30 - SQLITE_ERROR: near ")": syntax error
If i change the adapter by localDiskDb, it works with no problem.
If i associate a pet to this user, it works with no problem.
Thanks for your help :-)
The text was updated successfully, but these errors were encountered:
Hello,
i'am trying to use a many to many association with this adapter.
I use the sample with User and Pet models. One user can have many pets and one pets can have many owners
Model User
Model Pet
The text was updated successfully, but these errors were encountered: