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