DB_DataObject test for null

From: Date: Thu, 24 Aug 2006 03:03:40 +0000
Subject: DB_DataObject test for null
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24980@lists.php.net to get a copy of this message
Hi everyone, I'm having trouble working out how to test for a null value using DB_DataObject. If a field is set to NULL, the corresponding property in the data object is "", ie blank and not "null". Obviously it's very handy to be able to differentiate between an empty string and null. I've tried using the special sql casts that DB_DataObject supports, but this only lets me set null values, which I can already do anyway using $object->property = "null". Any help would be appreciated :) Chris -- View this message in context: http://www.nabble.com/DB_DataObject-test-for-null-tf2156266.html#a5956787 Sent from the Pear - General forum at Nabble.com.

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