diff --git a/code/model/collection.php b/code/model/collection.php index afae96b3..df2e9247 100644 --- a/code/model/collection.php +++ b/code/model/collection.php @@ -75,19 +75,6 @@ protected function _initializeContext(KModelContext $context) $context->data = $this->filterData($data); } - public function setState(array $values) - { - //Automatically create states that don't exist yet - foreach($values as $name => $value) - { - if(!$this->getState()->has($name)) { - $this->getState()->insert($name, 'string'); - } - } - - return parent::setState($values); - } - final public function hash($refresh = false) { $context = $this->getContext();