[TYPO3-mvc] deprecated function "withUid" usage in Tx_Extbase_Persistence_Repository
Thomas Hucke
thucke at web.de
Mon Mar 15 17:32:21 CET 2010
Hi folks,
I stumbled upon a possible bug.
I´m new to development in general - perhaps someone can check and create a
bugreport.
Tx_Extbase_Persistence_Repository:
public function findByUid($uid) {
if (!is_int($uid) || $uid < 0) throw new InvalidArgumentException('The uid
must be a positive integer', 1245071889);
if ($this->identityMap->hasIdentifier($uid, $this->objectType)) {
$object = $this->identityMap->getObjectByIdentifier($uid,
$this->objectType);
} else {
$query = $this->createQuery();
$query->getQuerySettings()->setRespectSysLanguage(FALSE);
$result = $query->matching($query->withUid($uid))->execute();
$object = NULL;
Tx_Extbase_Persistence_Query:
* @deprecated since Extbase 2.0; was removed in FLOW3; will be removed in
Extbase 3.0; use equals() ínstead
*/
public function withUid($operand) {
Regards
THomas
More information about the TYPO3-project-typo3v4mvc
mailing list