protected function clearDynamic(array &$data) { if (!$this->schema->dynamic) { $data = array_intersect_key($data, $this->schema->fields); } }