public function setSchema($Schema)
{
if ($Schema instanceof Gdn_Schema) {
$this->_Schema = $Schema->fields();
} elseif (is_array($Schema)) {
$this->_Schema = $Schema;
} else {
throw new \Exception('Invalid schema of type ' . gettype($Schema) . '.', 500);
}
$this->_SchemaRules = null;
return $this;
}