Show
Ignore:
Timestamp:
09/25/08 12:30:33 (4 months ago)
Author:
david
Message:

Allow specifying of doctrine template implementations, closes #864

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/src/database/AgaviDoctrineDatabase.class.php

    r2732 r2945  
    2222 * @author     Ross Lawley <ross.lawley@gmail.com> 
    2323 * @author     David Zülke <dz@bitxtender.com> 
     24 * @author     TANAKA Koichi <tanaka@ensites.com> 
    2425 * @copyright  Authors 
    2526 * @copyright  The Agavi Project 
     
    7475   * @author     David Zülke <dz@bitxtender.com> 
    7576   * @author     Ross Lawley <ross.lawley@gmail.com> 
     77   * @author     TANAKA Koichi <tanaka@ensites.com> 
    7678   * @since      0.11.0 
    7779   */ 
     
    138140      } 
    139141       
     142      foreach((array)$this->getParameter('impls', array()) as $templateName => $className) { 
     143        $this->connection->setImpl($templateName, $className); 
     144      } 
     145       
     146      foreach((array)$this->getParameter('manager_impls', array()) as $templateName => $className) { 
     147        $this->doctrineManager->setImpl($templateName, $className); 
     148      } 
     149       
    140150      Doctrine::loadModels($this->getParameter('load_models'));  
    141151