Changeset 2084

Show
Ignore:
Timestamp:
09/21/07 12:11:35 (16 months ago)
Author:
david
Message:

AgaviDoctrineDatabase? first prototype, refs #381. This will connect to doctrine for you automatically (lazy connecting!) and hopefully also manages multiple connections. getDoctrineManager() gives the manager, getResource() gives the PDO connection, getConnection() will give the doctrine connection object. The latter two cause doctrine to connect. connect() does nothing. Enjoy. Table/Connection mapping is coming next. Add "Doctrine" class to your autoload.xml for maximum pleasure.

Location:
branches/0.11/src
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/src/config/defaults/autoload.xml

    r2055 r2084  
    5656      <autoload name="AgaviDatabase">%core.agavi_dir%/database/AgaviDatabase.class.php</autoload> 
    5757      <autoload name="AgaviDatabaseManager">%core.agavi_dir%/database/AgaviDatabaseManager.class.php</autoload> 
     58      <autoload name="AgaviDoctrineDatabase">%core.agavi_dir%/database/AgaviDoctrineDatabase.class.php</autoload> 
    5859      <autoload name="AgaviMysqlDatabase">%core.agavi_dir%/database/AgaviMysqlDatabase.class.php</autoload> 
    5960      <autoload name="AgaviPdoDatabase">%core.agavi_dir%/database/AgaviPdoDatabase.class.php</autoload>