sentences.rb revision d52c5892e4d5d03ba4ec8bf45dc6dd39ca464338
included do
autosave: false,
end
e.range = hash['range']
execute_sql "DELETE FROM entities_sentences WHERE sentence_id=#{e.id}"
execute_sql "INSERT INTO entities_sentences (sentence_id, entity_id, ontology_id)
SELECT #{e.id}, id, ontology_id FROM entities WHERE
ontology_id=#{@association.owner.id} AND text IN (?)",
hash['symbols']
e
end
end
end