Skip to content

Commit

Permalink
FIX Resolve Published version field to Versioned_Version::Published()…
Browse files Browse the repository at this point in the history
… correctly (#125)
  • Loading branch information
robbieaverill authored and Damian Mooyman committed Mar 1, 2018
1 parent fe9f729 commit 49a3970
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/GraphQL/Extensions/DataObjectScaffolderExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ public function onBeforeAddToManager(Manager $manager)
],
'Published' => [
'type' => Type::boolean(),
'resolve' => function ($obj) {
return $obj->Published();
}
]
];
// Remove this recursive madness.
Expand Down

0 comments on commit 49a3970

Please sign in to comment.