Hi all,
We use Doctrine with multiple connections, but in the same time we want
to not set any of them as the default one.
It general, it seems quite possible and easily achievable. But I
discovered that not all code of Doctrine itself can properly work
without the default connection.
For example, here is a piece of code from
Doctrine_AuditLog::getMaxVersion(Doctrine_Record $record):
> $q = Doctrine_Query::create()
> ->select($select)
> ->from($className)
> ->where(implode(' AND ',$conditions));
As I understand, it can be fixed just by:
> $q = Doctrine_Query::create($record->getTable()->getConnection())
> ...
But there probably are more such issues, and without appropriate tests
it's not possible to solve all at once.
Do you mean to support usage without default connection?
If so, I can try to fix encountered problems along the way and prepare
patches.
--
Best regards,
Eugene Janusov.