Re: Re: DataObject - MDB2 issues

From: Date: Wed, 27 Sep 2006 08:33:09 +0000
Subject: Re: Re: DataObject - MDB2 issues
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25253@lists.php.net to get a copy of this message
Lukas Not meaning to sound ignorant but where do you set MDB2 options with DataObjects? Can you send me a link of all the options we can set for MDB2 also - i will check now also - so firing this off blind so please excuse that. I assume we overide the below somehow : // Create the array of options for DataObjects $config['DB_DataObject'] = array(
   'database'         => DB_EXT . '://USER:PASS@localhost/admin',
'schema_location' => ADMIN_DO . 'admin/schema', 'class_location' => ADMIN_DO . 'admin', 'require_prefix' => ADMIN_DO . 'admin',
   'class_prefix'     => 'DO_',
   'db_driver'        => 'MDB2',
'extends_location' => ADMIN_DO . 'admin/Inter.php',
   'extends'          => 'DB_Inter');
$options = &PEAR::getStaticProperty('DB_DataObject', 'options'); $options = $config['DB_DataObject']; Regards Ian Warner Director Triangle Solutions Ltd Lukas Kahwe Smith wrote:
Ian Warner wrote:
So something is goin go that is ewither not in the docs or is a bug I am unaware off.
just a wild guess .. the problem might be related to the fact that DB uses "id" as the column name in emulated sequences and MDB2 by default uses "sequence". The good news is that MDB2 allows you to set this to a different value via the "seqcol_name" option. regards, Lukas


« previous php.pear.general (#25253) next »