Skip to content

ManyToMany : Cannot add or update a child row: a foreign key constraint fails #1586

Answered by RomainLanz
LeadcodeDev asked this question in Help
Discussion options

You must be logged in to vote

Hey @LeadcodeDev! 👋

If you have a closer look to the error, you can see that you are not sending a correct parameter when calling sync().

insert into `achievements_technology` (`achievements_id`, `technology_id`) values (1, '[object Object]')

You must troubleshoot what you have inside technologies.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LeadcodeDev
Comment options

Answer selected by LeadcodeDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants