[+BUGFIX] (Persistence) clone setDefaultQuerySettings for new queries
authorMarc Bastian Heinrichs <heinrichs@mbh-web.de>
Sun, 6 Mar 2011 15:25:47 +0000 (16:25 +0100)
committerBastian Waidelich <bastian@typo3.org>
Mon, 7 Mar 2011 15:20:02 +0000 (16:20 +0100)
commitbeb36cd8e941986837945c5409e06a9edd46dcaf
tree584e1a5ffed796ad1118b16b97617b68bf5ad125
parent5268b3a7807e357e8d36b04ce68f2a67ff3c4988
[+BUGFIX] (Persistence) clone setDefaultQuerySettings for new queries

If you set the default querySettings object for an repository the same
instance is used for any query-object created with createQuery
method. So any repository method modificating its (normaly) own
querySettings object will also modificate the defaultQuerySettings
object. Thanks to Benjamin Schulte

Fixes: #12702

Change-Id: I9c00e064dee4349735a52e1ae01c6b5d28774fe1
typo3/sysext/extbase/Classes/Persistence/Repository.php
typo3/sysext/extbase/Tests/Unit/Persistence/RepositoryTest.php