repository updated for detached objects