Quite simple really:
$record = DataObject::get('Subdomain',"Subdomain='$subdomain' AND Status=1");
echo 'data=' . $record->ID;
die();
The above code returns nothing, although
print_r($record);
displays a full recordset as expected.
How do I access individual values from the recordset returned by DataObject::get? I have tried every field name available for the above object. None display anything despite there being data in the recordset.
Aaron