Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Data Model Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

ModelAdmin + $summary_fields

Go to End

2 Posts   1718 Views


Community Member, 175 Posts

6 November 2010 at 2:28am


I manage 2 models with modeladmin:

// $db array here ...

static $summary_fields = array(
static $has_one = array(
   'network' => 'network'

// ....

how can I add the "network" value from $has_one to the $summary_fields?



Forum Moderator, 1899 Posts

6 November 2010 at 3:23am

assuming 'Name' is a $db of network

static $summary_fields = array( 
'network.Name' => 'network'