diff --git a/library/Director/Data/Db/DbObject.php b/library/Director/Data/Db/DbObject.php index eb081665..13fd1926 100644 --- a/library/Director/Data/Db/DbObject.php +++ b/library/Director/Data/Db/DbObject.php @@ -282,6 +282,7 @@ abstract class DbObject if ($value === '') { $value = null; } + $func = 'validate' . ucfirst($key); if (method_exists($this, $func) && $this->$func($value) !== true) { throw new IE('Got invalid value "%s" for "%s"', $value, $key);