Thanks to all for the input.
I want to continue down the road of a resource plugin for my Doctrine
configuration since it is what I think the resource plugin is meant to
provide. I envision for my application that I will configure the DB Adapter
in the application configuration and within my
I would really like to see an example of Doctrine integrated as a module as
well.
- Steve W.
dbroderick wrote:
I am using ZF 1.8.4 and Doctrine 1.1.2 with a module directory setup of
+---application
| +---configs
| \---modules
| +---default
| | +---controllers
|
At my company I ended up creating a Doctrine integration class with a couple
of special methods:
class My_Doctrine
{
/**
* Recursively (and lazily) load all models from a directory or
* array of directories.
*
* @param string|array $directory Models directory or directories
Another way is simply to create an entry in your bootstrap:
protected function _initDoctrine()
{
$this-bootstrap(autoload);
$dbConfig = $this-options['db'];
defined('CONFIG_PATH') || define('CONFIG_PATH',
APPLICATION_PATH . '/configs');