DBDO::get on a unique non-primary field.

From: Date: Fri, 22 Jul 2005 15:46:26 +0000
Subject: DBDO::get on a unique non-primary field.
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20098@lists.php.net to get a copy of this message
Hello, I have a table with id, primary key with auto increment; username; unique key; etc. I'd like to be able to do: $me->got($myusername); instead of having to do $me->whereAdd("username = '$myusername'"); $me->find(True); For that I added this directive to my configuration: 'sequence_Providers' => 'username' (Providers is the name of the table). Am I missing something ? Thank you. -- Pupeno <pupeno@pupeno.com> (http://pupeno.com) Reading ? Science Fiction ? http://sfreaders.com.ar

Attachment: [application/pgp-signature]
« previous php.pear.general (#20098) next »