Bug
Set fails with foreign key error
Issue description
Give two topics T1 and T2. T1 and T2 are necessarily dependent on each other Let's assume order and invoice. One can for two existing instances not renew the association.
Developer comments
[%$invoice = Tobject::get("si:t1");
$order = Tobject::get("si:t2");
$invoice->set_invoice($t2);%]
This is caused by the way set is implemented as delete and add. The delete causes the subject to be deleted because it needs it to exist and cannot live without.
It is wrong that the subject is deleted. It is the counter player that is deleted.
There is only a foreign key error if the set call gets passed a tobject. When it gets passed a topic reference, it fails with an ResolveError.
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.