Allow multiple entity managers

At the moment, the default entitymanager is always used to retrieve the class metadata. This will fail if the repository is managed by another entity manager.

We could add the entitymanager as a property to the tablebuilder or we can solve it via reflection and setting the protected getClassMetadata method from the repository to accessible.