[eluser]BrianDHall[/eluser]
Surprisingly simple, once you know its there! Check out $object->fields
Code:
$o = new YourDMZModel();
foreach ($o->fields as $key, $field)
{
echo "Field $key is $field<br>\n";
}
That's it - it actually works before you even use get(), or after - your pick.
Fields contains a simple indexed array (starting at [0], naturally) that contains the database columns. Datamapper performs a simple limited select * upon instantiation of a new object, thus getting all the form field names and loading them into $fields for you.
Just that easy!