Property mapping fails for Account::roles
following error is thrown when the PropertyMapper tries to map the roles.
#1297759968: Exception while property mapping for target type "SomeModel", at property path "accounts.0": Catchable Fatal Error: Argument 1 passed to TYPO3\Flow\Persistence\Doctrine\Proxies\__CG__\TYPO3\Flow\Security\Account::setRoles() must be an array, object given.
This is mainly because the typehint in the function setRoles is <array> while the property itself is annotated as Doctrine Collection.
Changing the typehint to \Doctrine\Common\Collections\Collection seems to fixes this problem.