$do = DB_DataObject::factory('test');
$do->get(12);
$do->birthday = null;
$do->update();was supposed to generate SELECT * FROM test WHERE id=12; UPDATE test SET birthday=NULL where id = 12;
or
$do = DB_DataObject::factory('test');
$do->birthday = null;
$do->find();to do SELECT * FROM test WHERE birthday IS NULL;
but since there was no effective way to detect null, as apposed to unset.. I had to give up... - If this could be solved by variable_exists() - even though var $birthday is defined.. It would be great..
Regards Alan
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
