Revision: 184
http://sourceforge.net/p/beeframework/code/184
Author: m_plomer
Date: 2014-07-20 19:55:34 +0000 (Sun, 20 Jul 2014)
Log Message:
-----------
- Doctrine2: first design of entity injection
Modified Paths:
--------------
trunk/framework/Bee/Persistence/Doctrine2/BeanInjection/InjectionEventListener.php
Modified: trunk/framework/Bee/Persistence/Doctrine2/BeanInjection/InjectionEventListener.php
===================================================================
--- trunk/framework/Bee/Persistence/Doctrine2/BeanInjection/InjectionEventListener.php 2014-07-20 19:40:50 UTC (rev 183)
+++ trunk/framework/Bee/Persistence/Doctrine2/BeanInjection/InjectionEventListener.php 2014-07-20 19:55:34 UTC (rev 184)
@@ -43,7 +43,7 @@
foreach($reflClass->getMethods(ReflectionProperty::IS_PUBLIC) as $method) {
if($method->getNumberOfRequiredParameters() == 1) {
- foreach ($this->reader->getPropertyAnnotations($method) AS $annot) {
+ foreach ($this->reader->getMethodAnnotations($method) AS $annot) {
if ($annot instanceof Inject) {
$this->injectIntoSetter($entity, $method, $annot);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|