Whoops, pasted bad links, I meant these two:
http://groups.google.com/group/joomla-dev-cms/browse_thread/thread/46ca45a47524d9f/f2e667625b314ca6?lnk=gst&q=doctrine#f2e667625b314ca6
http://pastie.org/508338
And yes, Doctrine supports dynamic table prefixes, but joomla's prefix
will not always be "jos_", so you must retrieve the prefix from
joomla's config (as shown, in the pastie link), otherwise it is not a
proper integration:
$config =& JFactory::getConfig();
$DOCTRINE->connection = Doctrine_Manager::connection( $config->getValue
('config.dbtype').'://'.
$config->getValue('config.user').':'.
$config->getValue('config.password').'@'.
$config->getValue('config.host').'/'.
$config->getValue('config.db'),
'default');
Doctrine_Manager::getInstance()->setAttribute
(Doctrine::ATTR_TBLNAME_FORMAT, $config->getValue
('config.dbprefix').'%s');
Regards =),
David
> want to integrate it like this:
http://pastie.org/508338so you don't have