notjosh wrote:
>> if there is a way inside Creole to lazy load the PDO connection.
> 
> Creole, for the purpose of Propel, *is* PDO. I mean, Propel 1.2
> doesn't use PDO, it uses Creole. Propel 1.3 will use PDO (but 1.3 is
> not stable yet, so it's pointless in this context!)
> 
> I don't know if you typo'ed or if you thought PDO was in there
> somehow. But yeah, not yet!

That was a typo. But the issue remains the same. However actually for 
now we solved the issue by adding lazy loading into the translation 
access class and so all is well.

   public function connection()
   {
     if ($this->db == null || !$this->db instanceof Connection)
     {
       $this->db = 
sfContext::getInstance()->getDatabaseConnection($this->source);
       if ($this->db == null || !$this->db instanceof Connection)
       {
         $error = 'Dabatase connection doesn\'t exist. Unable to open 
session.';
         throw new sfDatabaseException($error);
       }
     }
     return $this->db;
   }

regards,
Lukas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to