[eluser]Unknown[/eluser]
I have a one to many relationship between resumé and qualification. but i cant get it working with datamapper- i have called on model qualification and the other Mresume (i have a controller named resume)
Code:
class Mresume extends DataMapper {
var $has_many = array(
'qualification' => array('join_self_as'=>'resume',
'class'=>'Qualification'
)
);
class Qualification extends DataMapper {
var $has_one = array(
'mresume' => array(
'join_other_as'=>'resume','class'=>'Mresume')
);
this is there error i get->
Code:
Unable to save the qualification relationship: The related object was not saved.
I have a foreign key in the qualifications table resume_id, am stuck on this.. tried multiple combinations but the documentation is clear!