[TYPO3-mvc] Possible misunderstanding of repository / variable scope?

Jan Kornblum jan.kornblum at gmx.de
Thu Jun 20 19:40:46 CEST 2013


Hi Frans,

> Probely because all objects are linked (references and not copies).
>
> So basicly the first set of items is the same as the second.
> nl1.php.net/references

Thanks!

But what can i do instead to get 2 independent sets of objects (just 
like they are stored in the database and not modified)? What i want to 
have is:

$a=$repo->findAll()
... modify all items in $a, but do not persist them

$b=$repo->findAll()
... get the items as they are originally stored in the database

Sorry if this is a silly question...

Regards, Jan




More information about the TYPO3-project-typo3v4mvc mailing list