Skip to content
Advertisement

Symfony 6 data access and transmission between multiple tables with format error [closed]

The project is a website written in symfony. The problem there is that there is a user and a consultant which is a separate table, but a user becomes the consultant, and when this consultant wants to give up his free time and I want to store it in a third table that listens for the interval name I have to fill in the consultant ID.

user_table:

JavaScript

cons table:

JavaScript

intervall table:

JavaScript

intervall wrong code slise:

JavaScript

that would be the mistake I see:

enter image description here

Advertisement

Answer

Seems like setter method allows only object of Cons or null value, so you have to set it as object.

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement