Merge pull request #5 from ZZromanZZ/master

Correct change detection in related entity