BlackbitDigitalCommerce / pimcore-data-director

Import Bundle for Pimcore
16 stars 3 forks source link

Recursive call of findInTable(...) #142

Open breakone opened 5 months ago

breakone commented 5 months ago

We run into problems in our deployment process.

The method getDataports() in the AutomaticImportListener

private static function getDataports() {
        if(self::$dataports === null) {
            self::$dataports = Dataport::getInstance()->find([], 'name');
        }

        return self::$dataports;
}

uses the find(...) method of the PimcoreDbRepository

public function find(array $where = [], string $order = null, int $count = null, int $offset = 0, $groupBy = null): array
{
        return $this->findInTable($this->getTableName(), $where, $order, $count, $offset, $groupBy);
}

And the findInTable(...) has a recursive call:

findInTable

So we run into a dead lock.

grind