Removing CustomValue with related User object
I'm working on plugin which creates CustomValue with relation to User (User has UserCustomField created). When I erase User object, it will not erase his CustomValue object. The problem is, that I'm searching for User according to value in his CustomValue, and if User object is erased, CustomValue object remains in DB. I was expecting that CustomValues are erased with related object.
Maybe it is defect, maybe it is feature and maybe I should just patch it in my plugin. But right now it's not behavior which I'm expecting and I have to deal with it somehow.
Redmine: devel (Revision 5881)