DDC-3427 - class metadata factory should accept `EntityManagerInterface` instances

See DDC-3427 ( http://www.doctrine-project.org/jira/browse/DDC-3427 )