I have two DataObject
s named AosMember
and Council
.
The Council
class has a $has_one
relationship to AosMember
.
class Council extends DataObject {
public static $db = array(
'Title' => 'Varchar(255)',
'Year' => 'Year(4)'
);
public static $has_one = array(
'Member' => 'AosMember'
);
public static $summary_fields = array(
'Year',
'Title'
);
private static $searchable_fields = array(
'Member.LAST_NAME' => 'PartialMatchFilter'
);
}
When I go into the ModelAdmin
for Council
in the CMS I see a text input for Member
. The member count is +500 so ideally I want to be able to type in the last name and get an autocomplete of some kind.
At the very least I would like a drop down field. But I cannot find instructions on how to get either.