cubicweb #1631391 make entity.set_relations() accept entities and eids [resolved]

Today we can only write:

ticket.set_relations(done_in=version)

or

ticket.set_relations(done_in=get_entity_from_eid(123))

It would be nice to be able to write directly:

ticket.set_relations(done_in=123)
prioritynormal
typeenhancement
done in3.12.3
load left0.000
closed by#ff8d6ae076c4 [entity] make set_relations() accept entities and eids (closes #1631391)