Fix #1434: Doctrine database adapter won't trigger connect() on getResource() call