DB_DataObject with generator_no_ini = yes wrong sequenceKey

From: Date: Wed, 08 Mar 2006 23:16:36 +0000
Subject: DB_DataObject with generator_no_ini = yes wrong sequenceKey
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23248@lists.php.net to get a copy of this message
Hi, I'm using DB_DataObject (1.8.4) with generator_no_ini=yes (great improvement imho, thanks Alan). All seems to work fine but the generated sequenceKey() method seems to be wrong when the primary key isn't an "id" column : function keys() {
        return array('auth_user_id');
} function sequenceKey() // keyname, use native, native name {
        return array('id', true, false);
} The primary key of the table is (for example) a "auth_user_id" column (used in a liveuser install), and there is no "id" column in the table. (By the way, the sequence is stored in an other table (according with the liveUser schema).) Regards, Didier ___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com

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