Closed webspilka closed 3 years ago
I believe the issue you are running into is caused by the name of the grid field, try setting it to match the name of the relationship so:
$gridfield = new GridField("PEntrys", "PEntrys", $this->PEntrys(), $gridFieldConfig);
Alternatively you can use the setCustomRelationName
method on GridFieldSortableRows
to set the relationship name.
Let me know if that helps 😄
cool, it worked :sunglasses:
Affected Version
silverstripe/recipe-cms 4.7.3 tractorcow/silverstripe-fluent 5.0.0 undefinedoffset/sortablegridfield 2.0.8
Description
Tell me what could be the problem? I get error on PCategory page, after adding PEntry to PCategory.
Steps to Reproduce
my code is https://gist.github.com/webspilka/6fbb98d032b23283665e597658be3a10
error codes: