Drop result ID from data objects on clone(). This keeps the original object working if it was in the middle of a query loop, even if the cloned object falls out of scope and triggers its destructor. This bug was hitting a number of places where we had the pattern:
Drop result ID from data objects on clone(). This keeps the original object working if it was in the middle of a query loop, even if the cloned object falls out of scope and triggers its destructor.
This bug was hitting a number of places where we had the pattern:

$db->find();
while($dbo->fetch()) {
  $x = clone($dbo);
  // do anything with $x other than storing it in an array
}

The cloned object's destructor would trigger on the second run through the loop, freeing the database result set -- not really what we wanted.
(Loops that stored the clones into an array were fine, since the clones stay in scope in the array longer than the original does.)

Detaching the database result from the clone lets us work with its data without interfering with the rest of the query.
In the unlikely even that somebody is making clones in the middle of a query, then trying to continue the query with the clone instead of the original object, well they're gonna be broken now.

brion/StatusNet,bankonme/gnu-social,csarven/statusnet,faulteh/gnu-social,zcopley/zcopleys-statusnet-clone,faulteh/gnu-social,faulteh/gnu-social,shashi/StatusNet,charlycoste/StatusNet,zh/statusnet,shashi/StatusNet,eXcomm/gnu-social,charlycoste/StatusNet,csarven/statusnet,charlycoste/StatusNet,Piratas/tortuga,zcopley/zcopleys-statusnet-clone,furtherfield/gnu-social,gnusocial/mainline,eXcomm/gnu-social,d3vgru/StatusNet,faulteh/gnu-social,zh/statusnet,Piratas/tortuga,Piratas/tortuga,foocorp/gnu-social,brion/StatusNet,UngPirat/freesocial,foocorp/gnu-social,eXcomm/gnu-social,zcopley/StatusNet,zcopley/zcopleys-statusnet-clone,gnusocial/mainline,studio666/gnu-social,studio666/gnu-social,minmb/statusnet,studio666/gnu-social,xebia/statusnet-oauth2,csarven/statusnet,d3vgru/StatusNet,znarf/statusnet-ladistribution,chimo/social,znarf/statusnet-ladistribution,UngPirat/freesocial,minmb/statusnet,sikevux/bsk-social,brion/StatusNet,sikevux/bsk-social,minmb/statusnet,charnimda/lgbtpzn-social,charnimda/lgbtpzn-social,sikevux/bsk-social,bankonme/gnu-social,bankonme/gnu-social,zcopley/StatusNet,studio666/gnu-social,furtherfield/gnu-social,furtherfield/gnu-social,furtherfield/gnu-social,foocorp/gnu-social,d3vgru/StatusNet,xebia/statusnet-oauth2,chimo/social,xebia/statusnet-oauth2,gnusocial/mainline,csarven/statusnet,UngPirat/freesocial,shashi/StatusNet,Piratas/tortuga,eXcomm/gnu-social,chimo/social,zh/statusnet,gnusocial/mainline,sikevux/bsk-social,znarf/statusnet-ladistribution,zcopley/StatusNet,charnimda/lgbtpzn-social,bankonme/gnu-social