This Yii application component acts as a container for the Doctrine 2 ORM library. Firstly, you will need to download the latest version of the Doctrine 2 ORM library and place it inside ext.Wildkat.YiiExt.DoctrineOrm.vendors. The directory layout should look like the following;
Now, inside main.php config file, set up the component with 3 keys (dbal, entityManager & cache) where each key represents a configuration set for each D2 component. For example;
You must also set and alias for the Wildkat namespace. At the top of the main.php configuration file, put Yii::setPathOfAlias('Wildkat', realpath(dirname(__FILE__) . '/../extensions/Wildkat'));
For each D2 component, you can specify any number of configurations and index them numerically or with a string. You can then access each configuration through the component method e.g. Yii::app()->doctrine->getConnection('foo') returns a dbal connection with a configuration index of 'foo'.
Returns a cache instance. Drivers can be specified by their fully qualified name e.g. Doctrine\Common\Cache\ArrayCache or by their short name e.g. ArrayCache.
If driver class is a custom implementation, it must extend from Doctrine\Common\Cache\AbstractCache.