[SOLVED] Override defaults in CDBConnection->driverMap

Hi all,

I’d like to replace the standard COciSchema mapping with my custom class. I’ve created a derived class, but what is the most neat way of overriding the default value in [font=“Courier New”]CDBConnection->driverMap[/font]? Can I use application’s config to achieve that?

Yes you can do it in config:


'db' => array(

   ...

   'driverMap' => array(

      'oci' => 'application.components.MyOciSchema', // protected/components.MyOciSchema.php

   ),

),

You might add the defaults as well if required (except oci of course).