From b2f1cdf4a922ca85233b62f3b8cf54f7e7cedfe3 Mon Sep 17 00:00:00 2001 From: Hunter Perrin Date: Wed, 1 May 2019 15:15:45 -0700 Subject: [PATCH] Fix entity class use from client. --- src/REST.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/REST.php b/src/REST.php index 7e9ccce..c4566fc 100644 --- a/src/REST.php +++ b/src/REST.php @@ -412,6 +412,7 @@ function ($arr) use ($restricted) { protected function loadEntity($entityData) { if (!class_exists($entityData['class']) || $entityData['class'] === 'Entity' + || $entityData['class'] === 'Nymph\Entity' || $entityData['class'] === '\Nymph\Entity' ) { // Don't let clients use the `Entity` class, since it has no validity/AC