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

#DDC-2313: QueryBuilder Deep Cloning #327

Merged
merged 1 commit into from
Jun 13, 2013
Merged

Conversation

pmen
Copy link

@pmen pmen commented May 27, 2013

No description provided.


$params = array();

foreach ($this->params as $param) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be simplified:

foreach ($this->params as $key => $param) {
    if (is_object($param)) {
        $this->params[$key] = clone $param;
    }
}

@beberlei beberlei merged commit 1c5d14b into doctrine:master Jun 13, 2013
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants