/** * @throws WrongArgumentException * @return boolean **/ public function importValue($value) { if ($value === null) { return parent::importValue(null); } Assert::isTrue($value instanceof Hstore, 'importValue'); if (!$this->value instanceof Form) { $this->value = $this->makeForm(); } $this->value->import($value->getList()); $this->imported = true; return $this->value->getErrors() ? false : true; }