[+BUGFIX] Extbase (Persistence): Extbase still used PHPs current() on some QueryResul...
authorBastian Waidelich <bastian@typo3.org>
Sun, 14 Nov 2010 14:56:14 +0000 (14:56 +0000)
committerBastian Waidelich <bastian@typo3.org>
Sun, 14 Nov 2010 14:56:14 +0000 (14:56 +0000)
commit77b4c1d2f2c0e051563070327f4ed3699a706f68
treef46853cb8883ec6791940ed7850c45990ced8c9a
parent3386f870232a34b102d8ce6589e3472809b35b0e
[+BUGFIX] Extbase (Persistence): Extbase still used PHPs current() on some QueryResults in Persistence/Repository. Replaced these by calls to the getFirst() method of the QueryResult
[+TASK] Extbase (Persistence): added a private field to the QueryResult to make the above case easier to debug: When calling current() on an Iterator, PHP returns the first field of that object instead of calling the current() method of the Iterator interface.. With our somewhat pragmatic approach you'll see the warning if you debug the results of current($query->execute())
[+BUGFIX] Extbase (Persistence): Replaced two occurrences of Query->count() by Query->execute()->count() to avoid deprecated warnings in the Core
typo3/sysext/extbase/Classes/Persistence/Mapper/DataMapper.php
typo3/sysext/extbase/Classes/Persistence/QueryResult.php
typo3/sysext/extbase/Classes/Persistence/Repository.php