Doctrine 1

Make sure doctrine uses the right connection when creating a query from a table object