Doctrine 1

Doctrine_Table::createQuery creates a query with the default connection instead of the current connection