-
-
Save hailwood/48affcd5869d0cd4c225 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$config = new GridFieldConfig_RelationEditor(); | |
$fields->addFieldToTab('Root.SomeHasManyRelation', new GridField($field, null, $this->SomeHasManyRelation(), $config)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dump of $this->SomeHasManyRelation()->toArray() (SomeHasManyRelation is GalleryImages in this case).
Array
(
[0] => GalleryImage Object
(
[destroyed] =>
[model:protected] => DataModel Object
(
[customDataLists:protected] => Array
(
)
)