I create a class Material and ProveedorMaterial, after add ProveedorMaterial to Material. Now Material.save(), in the code, first try insert ProveedorMaterial in the DataBase then its produced mistake of referential integrity. Why don't first save Material and after ProveedorMaterial, if you can do it, i think than referential integritywill be solve
Saludos
Victor (Madrid Spain)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can use Referential intergrety(foreign key)
or How ?
Saludos
Victor (Madrid -Spain)
Hi Victor,
Referential integrity is not supported at this stage.
Sorry if that causes problems.
Hi,
I create a class Material and ProveedorMaterial, after add ProveedorMaterial to Material. Now Material.save(), in the code, first try insert ProveedorMaterial in the DataBase then its produced mistake of referential integrity. Why don't first save Material and after ProveedorMaterial, if you can do it, i think than referential integritywill be solve
Saludos
Victor (Madrid Spain)
Hi Victor,
I agree with the theory, I just haven't actually implemented anything to change the order objects are saved in.
It's on my to-do list of things (for a future release), and it's already a request (see the sourceforge RFE for more details).
- Richard