Yes. This is my employee class:
<?php
class Employee extends Member {
static $db = array (
'Nickname' => 'Text',
'Description' => 'Text',
//... lot's of stuff here...
'Status' => 'Enum("Aktiv, Inaktiv")',
'Note' => 'HTMLText'
);
static $has_one = array(
'Picture' => 'Image',
//...more here...
'Evalutation' => 'EmployeeEvaluation'
);
static $has_many = array(
'Pictures' => 'BlondImage',
'EventEvaluations' => 'EventEvaluation',
'EventRetailEvaluations' => 'EventRetailEvaluation'
);
static $many_many = array(
'Skills' => 'Skill',
'WorkWishes' => 'WorkWish',
);
static $belongs_many_many = array(
'Jobs' => 'Job'
);
//etc...
And this is my BlondImage class:
<?php
class BlondImage extends Image {
static $has_one = array(
'Employee' => 'Employee'
);
}
?>
The uploadify field is pretty straight too:
new MultipleImageUploadField('Pictures', '', array('buttonText' => 'Vælg billede')