Introduced properties are not available in the reflection service during a compile run
The AOP proxy builder must register each introduced property, that the other proxy builders can use the reflection service to ask for them...
Updated by Alexander Berl almost 8 years ago
One could classSchema->addProperty in ProxyClassBuilder->buildProxyClass for every introduced property. However, the type information isn't available at that point unless the docblock is parsed there also.
Wouldn't it be possible to do a whole reflectionData update for all classes with introduced properties at last? The problem I see is that the class is already loaded with the unproxied status, so just calling the reflection won't help. So the reflection would have to be called in it's own command/process AFTER the proxy is built.