Hi Jose,
I assume you send the entity from flex to server as a parameter.
I would suggest sending id's of the entity and the file to be
associated to the server and doing the changes on the server side then
save.
When using dphibernate I got all kinds of problems whenever I tried to
send an entity as service parameter.
A second and maybe a little harder way is to use entity.save(),
entity.deleteRecord() methods directly from flex (without sending the
entity as service parameter. Actually without using any service at
all) You can look at the lazyoverflow example for the implementation.
entity.save() (or deleteRecord for that matter) only sends proxy
information adn changes made to the entity to the server as parameters
so it wouldn't cause trouble like using services.