Revision: 260
http://sourceforge.net/p/beeframework/code/260
Author: m_plomer
Date: 2014-10-15 23:20:05 +0000 (Wed, 15 Oct 2014)
Log Message:
-----------
- fixed getById() optimization
Modified Paths:
--------------
trunk/framework/Bee/Persistence/Doctrine2/GenericDaoBase.php
Modified: trunk/framework/Bee/Persistence/Doctrine2/GenericDaoBase.php
===================================================================
--- trunk/framework/Bee/Persistence/Doctrine2/GenericDaoBase.php 2014-10-15 19:49:12 UTC (rev 259)
+++ trunk/framework/Bee/Persistence/Doctrine2/GenericDaoBase.php 2014-10-15 23:20:05 UTC (rev 260)
@@ -91,7 +91,8 @@
}
}
- $this->idRestrictor($qb = $this->getBaseQuery(), $id);
+ $setter = $this->idRestrictor;
+ $setter($qb = $this->getBaseQuery(), $id);
return $this->getSingleResult($qb);
}
@@ -100,8 +101,6 @@
* @param IOrderAndLimitHolder $orderAndLimitHolder
* @param array $defaultOrderMapping
* @return array
- *
- * @deprecated use executeListQuery() instead
*/
public function getList(IRestrictionHolder $restrictionHolder = null, IOrderAndLimitHolder $orderAndLimitHolder = null, array $defaultOrderMapping = null) {
return $this->executeListQuery($this->getBaseQuery(), $restrictionHolder, $orderAndLimitHolder, $defaultOrderMapping, null);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|