Gridfield is such a new part of the SS 3.0 release, it should have a module forum of its own, IMO.
So I have a method of Relational but as soon as I type in something in the field, I get an immediate notice:
An error occured while fetching data from the server
Please try again later.
And then a growl inside the admin: "Request-URI Too Large"
Book.php:
public function getCMSFields() {
$fields = parent::getCMSFields();
$config = GridFieldConfig_RelationEditor::create();
$f = new GridField('Testimonials', 'Testimonials', $this->Testimonials(), $config);
$fields->addFieldToTab('Root.Testimonials', $f);
return $fields;
}
Testimonial.php Dataobject
public static $db = array(
'Title' => 'Varchar(255)',
'Quote' => 'HTMLText',
'Tagline' => 'Varchar(255)',
'SortOrder' => 'Varchar(255)'
);
public static $has_one = array(
'Book' => 'Book',
'Image' => 'Image'
);