On Feb 13, 2007, at 9:18 AM, John Siracusa wrote: > On 2/13/07, Graham Barr <[EMAIL PROTECTED]> wrote: >> This could be done by adding a column_exists method to RDBO which >> would >> only return true if the named column had been loaded from the DB >> or set >> by calling the accessor method. And have ->load use column_exists >> instead >> of defined when passed a flag,for example ->load(explicit =>1) (or >> some >> better name) > > I think a column_value_was_set() utility function is reasonable, but I > don't want to (further) complicate and burden the default load() > method for the sake of this quite esoteric (and, truthfully, almost > entirely MySQL- specific) case.
Well if you do not want to change load() at least having column_value_was_set() would allow us to write our own load() that does load only based on specified arguments. Graham. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object