Status: New
Owner: ----
Labels: Type-Defect Priority-High Milestone-Release-1.0.5 Component-YAML

New issue 525 by [EMAIL PROTECTED]: Deleting QubitObjectTermRelation is  
not deleting parent QubitObject
http://code.google.com/p/qubit-toolkit/issues/detail?id=525

This is causing an error when trying to re-load a dumped yaml data file.

To reproduce, from a standard ICA-AtoM install using the sampleData.yml  
data.
1) Delete all Information objects in the system (deleting the three
top-level objects will also delete their descendants)
2) Do a propel:data-dump as per
http://qubit-toolkit.org/wiki/index.php?title=Backup_and_restore_of_Qubit_data
3) Attempt to reload the data dump file with propel:build-all-load

You will receive a foreign key constraint failure when the load-data
process tries QubitObjectTermRelation object with no object_id.

The stub data in the dump.yml file looks like this:
---
QubitObjectTermRelation:
   QubitObjectTermRelation_296:
     class_name: QubitObjectTermRelation
   QubitObjectTermRelation_297:
     class_name: QubitObjectTermRelation
---

The same data in the mysql q_object table looks like this:

mysql> select * from q_object where class_name = 'QubitObjectTermRelation';
+-------------------------+-----+
| class_name              | id  |
+-------------------------+-----+
| QubitObjectTermRelation | 296 |
| QubitObjectTermRelation | 297 |

There are no corresponding rows in the q_object_term_relation table:

mysql> select * from q_object_term_relation;
Empty set (0.00 sec)





-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Issues" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/qubit-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to