We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The method allPopulate in ActiveQuery will execute populate twice during execution.
allPopulate
ActiveQuery
populate
Is this how it was designed or is it a bug ?
public function all(): array { if ($this->shouldEmulateExecution()) { return []; } return $this->populate($this->createCommand()->queryAll(), $this->indexBy); // Repeated execution } public function allPopulate(): array { $rows = $this->all(); if ($rows !== []) { $rows = $this->populate($rows, $this->indexBy); // Repeated execution } return $rows; }
populate should only be executed once ?
populate executed twice
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What steps will reproduce the problem?
The method
allPopulate
inActiveQuery
will executepopulate
twice during execution.Is this how it was designed or is it a bug ?
What is the expected result?
populate
should only be executed once ?What do you get instead?
populate
executed twiceAdditional info
The text was updated successfully, but these errors were encountered: