From 9c4298aa143f16a4b7f877905ed1501cba1ddc58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hosmel=20Quintana=20=F0=9F=98=B4?= Date: Mon, 14 Nov 2016 09:19:01 -0600 Subject: [PATCH] Use getKey method instead of id --- src/Support/Definition/RelayType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Support/Definition/RelayType.php b/src/Support/Definition/RelayType.php index e51fc9e..c540ab5 100644 --- a/src/Support/Definition/RelayType.php +++ b/src/Support/Definition/RelayType.php @@ -73,7 +73,7 @@ public function getConnections() */ public function getIdentifier($obj) { - return $obj->id; + return $obj->getKey(); } /**