Hi everybody,
I was trying to get a has_many relation into the table of a Model Admin by summary fields. Is there a way to do that?
By now I got:
<?php
class Client extends DataObject {
static $has_many = array(
"Domains" => "Domain"
);
static $summary_fields = array(
'Domains.DomainName' => 'Domains'
);
AND
<?php
class Domain extends DataObject {
static $db = array(
'DomainName' => "Varchar"
);
which should work with has_one relations but doesn't with has_many.
I would be happy for every hint.
Thanks,
Phil