Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Working without default connection
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Eugene Janusov  
View profile   Translate to Translated (View Original)
 More options 27 Oct, 06:27
From: Eugene Janusov <esy...@gmail.com>
Date: Tue, 27 Oct 2009 17:27:33 +1100
Local: Tues 27 Oct 2009 06:27
Subject: Working without default connection
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.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google