« Previous | Next » 

Revision c131afab


Added by Ferdinand Kuhl about 10 years ago

[BUGFIX] Fix Persistence\Doctrine\Query serialization cycle

If you assign a QueryResult to a ViewHelper and later on use
$result->getQuery(), this query is not executable any more, if
you used complex "where"-clauses involving joins, as these
joins are not reapplied to the object during the __wakeup()

This patch ensures the query being callable like the
original one after __wakeup() by saving all joins in array
and reapplies them after wakeup. A functional test is

Change-Id: I0cb6a5cfd0b5dafe16dc65295c252c60fe90b9e7
Fixes: #31696
Releases: 1.0, 1.1

  • added
  • modified
  • copied
  • renamed
  • deleted