Bug #29066

Doctrine::QueryResult->getQuery() does not clone the query before returning it

Added by Sebastian Kurfuerst almost 4 years ago. Updated almost 4 years ago.

Status:Resolved Start date:2011-08-18
Priority:Must have Due date:
Assigned To:Sebastian Kurfuerst % Done:

100%

Category:Persistence
Target version:TYPO3 Flow Base Distribution - 1.0 beta 1
PHP Version: Complexity:
Has patch: Affected Flow version:

Description

.. This means the original query gets modified, which is wrong.

We should also create a test case for this.

Associated revisions

Revision 8bcb8bc9
Added by Sebastian Kurfuerst almost 4 years ago

[BUGFIX] (Persistence): Doctrine\QueryResult::getQuery() should return cloned query

That's also stated in the PHPDoc comment of the method, and we need to clone it
to make sure it does not have side-effects.

Change-Id: Ibcbc0d467757140f634ca80a01f1adeb2c7da815
Resolves: #29066

History

#1 Updated by Mr. Hudson almost 4 years ago

  • Status changed from Accepted to Under Review

Patch set 1 of change Ibcbc0d467757140f634ca80a01f1adeb2c7da815 has been pushed to the review server.
It is available at http://review.typo3.org/4402

#2 Updated by Sebastian Kurfuerst almost 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF