[Flow] How to retrieve settings?

Andreas Wolf aw at foundata.net
Sat Jan 4 15:43:04 CET 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi Carsten,
hi Axel,

Am 04.01.2014 14:15, schrieb Carsten Bleicker:
> just an idea: settings are missing in my case too if i extend a
> controller from another one. example:
> 
> class AbstractFooController extends ActionController{} class
> FooController extends AbstractFooController {} // settings
> injection works class BarController extends FooController {} //
> settings NOT injected class BazController extends BarController {}
> // settings NOT injected
> 
> this happens because of a bug in the builded proxy classes. 
> christian müller knows about it. didn't find a forge ticket yet.
> 
> maybe you have some of those nested extendings too?

ah right, I remember that.

Just have a look at your generated proxy classes in
Data/Temporary/.../Cache/Code/Flow_Object_Classes/, if the
injectSettings method is available in the corresponding classes.

To elaborate the issue Carsten mentioned a bit: For each class in the
hierarchy, a class is derived that inherits the classes name. The
original class gets _Original appended to its name. In the derived
class, AOP proxies and other autogenerated code are inserted.

The original class structure is this:

+ MyClass
\- MyDerivedClass

After class generation, the structure looks like this:

+ MyClass_Original
+-- MyClass
\+- MyDerivedClass_Original
 \-- MyDerivedClass

(this is the stuff you find in the Flow_Object_Classes directory)


The problem now is that the injection stuff is only present in
MyClass, but not in MyDerivedClass. Normally, the insertion mechanism
should put the stuff in both generated classes, but that doesn't happen.


Regards

Andreas

- -- 
Foundata GmbH
Steinhäuserstraße 20
76135 Karlsruhe
mail at foundata.net

Sitz der Gesellschaft: Karlsruhe
Registergericht: Amtsgericht Mannheim, HRB 714807
Rechtsform: Gesellschaft mit beschränkter Haftung (GmbH)
Vertretungsberechtigte Geschäftsführer: Andreas Haerter, Andreas Wolf
USt-IdNr.: DE284122682

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iF4EAREIAAYFAlLIHfgACgkQRJlqDhrZfp1x+wD+I4FUyDqFFSb0ZxK3ecnvtVwA
jGWqwQLAQ/flkZ4hFhQA/2km+N1DA8FDUILIMgRbkakB55xSQjwtUPvh6TqALzga
=bz7Y
-----END PGP SIGNATURE-----


More information about the Flow mailing list