Skip to content
Snippets Groups Projects
Commit 724bf5be authored by Patrick Meidl's avatar Patrick Meidl
Browse files

fixed bug storing xrefs

parent 199ec320
No related branches found
No related tags found
No related merge requests found
......@@ -235,12 +235,15 @@ sub store {
my $transl_dbID = $sth->{'mysql_insertid'};
$translation->dbID($transl_dbID);
$translation->adaptor($self);
#store object xref mappings to translations
my $dbEntryAdaptor = $self->db()->get_DBEntryAdaptor();
#store each of the xrefs for this translation
foreach my $dbl ( @{$translation->get_all_DBEntries} ) {
$dbEntryAdaptor->store( $dbl, $transl_dbID, "Translation" );
$dbEntryAdaptor->store( $dbl, $translation, "Translation" );
}
......@@ -279,9 +282,6 @@ sub store {
$translation->get_all_Attributes();
$translation->dbID( $transl_dbID );
$translation->adaptor( $self );
# store any translation attributes that are defined
my $attr_adaptor = $self->db->get_AttributeAdaptor();
$attr_adaptor->store_on_Translation($translation,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment