Adding a group as a recipient, I got following error:
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`forum`.`test_recipients`, CONSTRAINT `test_recipients_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `test_users` (`id`) ON DELETE CASCADE)
It looks like flarum is attepmting to save group into the "user" column ...
Is it known issue? Actually, I only need to add a group as a recipient through the API,
but JSON
relationships: {recipientUsers: {data: [{type: "users", id: "2"}]},recipientGroups: {data: [{type: "groups", id: "5"}]}}
is causing the same problem. Anyone knows how the JSON should look like?
Thanks a lot