I have two models:
-
bien (id_bien, id_cmd)
-
commande(id_cmd)
Where id_cmd is a foreign key in bien relation. how can I create a form for bien model and use the id_cmd foreign key. I have tried a lot to insert into bien table but I could not.
Thx