ImportRowModifier: fix class instantiation

This commit is contained in:
Thomas Gelf 2017-08-20 15:17:22 +02:00
parent 20ca3f2e54
commit 1999de2707
1 changed files with 2 additions and 1 deletions

View File

@ -35,8 +35,9 @@ class ImportRowModifier extends DbObjectWithSettings
public function getInstance()
{
if ($this->hookInstance === null) {
$class = $this->get('provider_class');
/** @var PropertyModifierHook $obj */
$obj = new $this->get('provider_class');
$obj = new $class;
$obj->setSettings($this->getSettings());
$obj->setTargetProperty($this->get('target_property'));
$obj->setDb($this->connection);