ImportRowModifier: fix class instantiation
This commit is contained in:
parent
20ca3f2e54
commit
1999de2707
|
@ -35,8 +35,9 @@ class ImportRowModifier extends DbObjectWithSettings
|
||||||
public function getInstance()
|
public function getInstance()
|
||||||
{
|
{
|
||||||
if ($this->hookInstance === null) {
|
if ($this->hookInstance === null) {
|
||||||
|
$class = $this->get('provider_class');
|
||||||
/** @var PropertyModifierHook $obj */
|
/** @var PropertyModifierHook $obj */
|
||||||
$obj = new $this->get('provider_class');
|
$obj = new $class;
|
||||||
$obj->setSettings($this->getSettings());
|
$obj->setSettings($this->getSettings());
|
||||||
$obj->setTargetProperty($this->get('target_property'));
|
$obj->setTargetProperty($this->get('target_property'));
|
||||||
$obj->setDb($this->connection);
|
$obj->setDb($this->connection);
|
||||||
|
|
Loading…
Reference in New Issue