Revision: 183
http://sourceforge.net/p/beeframework/code/183
Author: m_plomer
Date: 2014-07-20 19:40:50 +0000 (Sun, 20 Jul 2014)
Log Message:
-----------
- Doctrine2: first design of entity injection
Modified Paths:
--------------
trunk/framework/Bee/Persistence/Doctrine2/BeanInjection/InjectionEventListener.php
trunk/framework/Bee/Persistence/Doctrine2/DaoBase.php
Modified: trunk/framework/Bee/Persistence/Doctrine2/BeanInjection/InjectionEventListener.php
===================================================================
--- trunk/framework/Bee/Persistence/Doctrine2/BeanInjection/InjectionEventListener.php 2014-07-20 15:45:49 UTC (rev 182)
+++ trunk/framework/Bee/Persistence/Doctrine2/BeanInjection/InjectionEventListener.php 2014-07-20 19:40:50 UTC (rev 183)
@@ -2,7 +2,7 @@
namespace Bee\Persistence\Doctrine2\BeanInjection;
use Bee_IContext;
-use Doctrine\Common\Annotations\AnnotationReader;
+use Doctrine\Common\Annotations\Reader;
use Doctrine\Common\EventSubscriber;
use Doctrine\ORM\Event\LifecycleEventArgs;
use Doctrine\ORM\Event\LoadClassMetadataEventArgs;
@@ -16,7 +16,7 @@
*/
class InjectionEventListener implements EventSubscriber, \Bee_Context_Config_IContextAware {
/**
- * @var AnnotationReader
+ * @var Reader
*/
private $reader;
@@ -94,16 +94,16 @@
}
/**
- * @return AnnotationReader
+ * @return Reader
*/
public function getReader() {
return $this->reader;
}
/**
- * @param AnnotationReader $reader
+ * @param Reader $reader
*/
- public function setReader(AnnotationReader $reader) {
+ public function setReader(Reader $reader) {
$this->reader = $reader;
}
Modified: trunk/framework/Bee/Persistence/Doctrine2/DaoBase.php
===================================================================
--- trunk/framework/Bee/Persistence/Doctrine2/DaoBase.php 2014-07-20 15:45:49 UTC (rev 182)
+++ trunk/framework/Bee/Persistence/Doctrine2/DaoBase.php 2014-07-20 19:40:50 UTC (rev 183)
@@ -132,6 +132,8 @@
* @param callback $func
* @throws Exception
* @return mixed
+ *
+ * @deprecated use EntityManager::transactional() instead
*/
public function doInTransaction($func) {
$this->getLog()->info('Begin transaction.');
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|