* Note - projectdirectory is linked to this - due to an issue with postgres - we should keep to lowercase names only for tables..
*
*/
-require_once 'DB/DataObject.php';
+class_exists('DB_DataObject') ? '' : require_once 'DB/DataObject.php';
class Pman_Core_DataObjects_ProjectDirectory extends DB_DataObject
{
$pd = DB_DataObject::factory('ProjectDirectory');
- $pd->joinAdd(DB_DataObject::factory('Projects'), 'LEFT');
+ $pd->joinAdd(DB_DataObject::factory('core_project'), 'LEFT');
$pd->whereAdd("Projects.type NOT IN ('N','X')");
$pd->person_id = $au->id;