Open toto975 opened 1 year ago
9.31.0
8.1.11
1.5
MySQL 8.0.31
Add data with a relation My model : Parcours has one Cadre
In the BREAD of Parcours, if the "Add" is unchecked
there is a SQL error
It's OK, because the foreign key cadre_id is not into the SQL query.
When the "Add" is checked, no SQL error. It's OK
When i edit the "Parcours", "edit" for cadre_id can be checked or unchecked, query is OK.
When adding data with relationship, why "add" for foreign key must be checked ? Why it's not possible to unchecked like "edit" ?
No response
Laravel version
9.31.0
PHP version
8.1.11
Voyager version
1.5
Database
MySQL 8.0.31
Description
Add data with a relation My model : Parcours has one Cadre
Steps to reproduce
In the BREAD of Parcours, if the "Add" is unchecked
there is a SQL error![image](https://user-images.githubusercontent.com/104444110/207540419-053f4f8e-d79a-4da1-aa5a-e7e19f2e75b3.png)
It's OK, because the foreign key cadre_id is not into the SQL query.
When the "Add" is checked, no SQL error. It's OK
When i edit the "Parcours", "edit" for cadre_id can be checked or unchecked, query is OK.
Expected behavior
When adding data with relationship, why "add" for foreign key must be checked ? Why it's not possible to unchecked like "edit" ?
Screenshots
No response
Additional context
No response