Changeset 2945

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

Allow specifying of doctrine template implementations, closes #864

Location:
branches/0.11
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/CHANGELOG

    r2943 r2945  
    440.11.4 RC1 (September ??, 2008) 
    55------------------------------- 
     6 
     7ADD: Allow specifying of doctrine template implementations (#864) (David, TANAKA Koichi) 
    68 
    79FIX: SOAP and XMLRPC test scripts in sample app are broken (#866) (David) 
  • 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