Proper error message in exception

This commit is contained in:
Mikael Nordfeldth 2015-12-31 12:41:02 +01:00
parent 5ba6be1a87
commit 6606781916

View File

@ -371,7 +371,7 @@ abstract class Managed_DataObject extends Memcached_DataObject
if (!array_key_exists($col, $vals)) { if (!array_key_exists($col, $vals)) {
continue; continue;
} elseif (is_null($vals[$col])) { } 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]; $object->$col = $vals[$col];
} }