Hello, quick question hopefully.
I'm decorating Member, adding some DB fields and a has_one relationship. Problem is that the has_one relationship is only available on one side.
class SomeDataObject extends DataObject {
static $db = array(
'Title' => 'Text'
);
static $has_one = array(
'Member' => 'Member'
);
}
and
class CustomMember extends DataExtension {
static $has_one = array(
'SomeDataObject' => 'SomeDataObject'
);
}
I'm using model admin for SomeDataObject and can add Members to SomeDataObjects. But when I look at the member in the security area, the field for SomeDataObject is empty and in the DB the SomeDataObjectID field in Member is 0.
What am I doing wrong?
Thanks