Author: mcantelon
Date: Tue Jan 10 13:03:12 2012
New Revision: 10621
Log:
Added creation of relationship between accessions and information objects.
Modified:
trunk/lib/task/csvImportTask.class.php
Modified: trunk/lib/task/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/csvImportTask.class.php Tue Jan 10 13:02:00 2012
(r10620)
+++ trunk/lib/task/csvImportTask.class.php Tue Jan 10 13:03:12 2012
(r10621)
@@ -343,6 +343,11 @@
}
// add relationship between information object and accession
+ $relation = new QubitRelation;
+ $relation->subjectId = $self->informationObject->id;
+ $relation->objectId = $accessionId;
+ $relation->typeId = QubitTerm::ACCESSION_ID;
+ $relation->save();
}
}
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" 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-commits?hl=en.