issue #20154: If the id attribute is passed in as an option value on fetch, let that resolve as the id.
issue #19868: Make sure related model being set gets a valid status for checking privileges.
Merge pull request #322 from jrogelstad/master

issue #19868: Fix document box problem.