I have three classes:
class Person ...
private static $has_one = array(
'Item' => 'Item'
);
...
---
class Item ...
private static $has_one = array(
'ItemType' => 'ItemType'
);
public static $summary_fields = array(
'ItemType.Name'
);
...
---
class ItemType ...
private static $db = array(
'Name' => 'Varchar(255)'
);
...
---
and of course the backtracking $has_one's and whatnot.
the problem: i want to show the Name of ItemType in the Dropdown of the Person class. But a mapping like this doesn't work:
$items = Item::get()->map('ID', 'ItemType.Name');
Any ideas how i could do that?