Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursive call of findInTable(...) #142

Open
breakone opened this issue Feb 6, 2024 · 0 comments
Open

Recursive call of findInTable(...) #142

breakone opened this issue Feb 6, 2024 · 0 comments

Comments

@breakone
Copy link

breakone commented Feb 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant