Fixed bug with entity managers returning pdo connections