From 660678191676b9997883b6c72d62946d0334cd7e Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 31 Dec 2015 12:41:02 +0100 Subject: [PATCH] Proper error message in exception --- classes/Managed_DataObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Managed_DataObject.php b/classes/Managed_DataObject.php index 5f8445d81e..fb18e594f9 100644 --- a/classes/Managed_DataObject.php +++ b/classes/Managed_DataObject.php @@ -371,7 +371,7 @@ abstract class Managed_DataObject extends Memcached_DataObject if (!array_key_exists($col, $vals)) { continue; } elseif (is_null($vals[$col])) { - throw new ServerException("NULL values not allowed in getByPK for column '{$col}'"); + throw new ServerException("NULL values not allowed in getByKeys for column '{$col}'"); } $object->$col = $vals[$col]; } -- 2.39.5