public function __construct($objModel)
 {
     if ($objModel instanceof \Model) {
         $this->objModel = $objModel;
     } elseif ($objModel instanceof \Model\Collection) {
         $this->objModel = $objModel->current();
     }
     \Backend::__construct();
     if ($objModel->purgeBeforeImport && !$this->dryRun) {
         $this->purgeBeforeImport($objModel);
     }
     $this->arrData = $objModel->row();
     $this->objParentModel = EntityImportModel::findByPk($this->objModel->pid);
 }
 public function getSourceTables(\DataContainer $dc)
 {
     $arrTables = \HeimrichHannot\EntityImport\Database::getInstance(\HeimrichHannot\EntityImport\EntityImportModel::findByPk($dc->activeRecord->pid)->row())->listTables();
     return array_values($arrTables);
 }