#67630Loop when resolving circular relations
Description
When using circular relations in extbase
class Author has protected $articles and class Article has protected $author
the DataMappers attempt to resolv it will fail in an infinite loop.
Reason:
While replacing the IdentityMap with the PersistenceSession, the call responsible for registering the newly resolved object to the session was moved down too far. The object has to be registered before the arguments get mapped, so that sub-objects getting mapped can find it.