Quote from: opengeek at Apr 16, 2012, 08:02 AMI hope this is only used for connecting to an external database by very infrequent requests. If not, you might consider reducing overhead by moving the tables into the same database container as MODX; having two database connections is never going to be an efficient approach FWIW.
I have my custom table which is located in the same database.
You are right, i comment line codes where's i have this constructor and everything works fine, for mostly of time, if i use now direct sql with xPDOCriteria.
But i think if i want play with xPDO stuff, i should make something like
$core = $modx->getOption('core_path');
$xpdo->addPackage('forum', $core.'model/');
and this need $xpdo constructor for work right?