Changed entity from requiring stdClass and having stdClass hinting to allow any object.
Merge branch 'hotfix/stdClass'