Hi,
Just noticed something that seems odd at:
http://silverstripe.org/sapphire-code-samples/
states that to add an image field:
static $db = array( 'Role' => 'text', 'StaffPhoto' => 'image' );
.....
But, shouldnt it be:
static $db = array(
"Role" => "Text"
);
static $has_one= array(
"StaffPhoto" => "Image"
);
or?
seems to work for me this way anyways.
Thanks,