I banged my head against the wall for hours. Shortcuts for form fields did not appear no matter what.
Finally, it turned out that without additional space where the cursor is located (see image), all annotations are ignored. I am using ZF 2.1.1 with Doctrine Common 2.2.3.
Am I doing something wrong? Or is it a bug in ZF or the Doctrine parser?

Works:
class LoginForm { /** @Annotation\Type("text") * @Annotation\Options({"label":"Store ID:"}) * @Annotation\Required(true) * @Annotation\Filter({"name":"StringTrim"}) * @Annotation\Validator({"name":"StringLength","options":{"min":2,"max":64}}) */ public $sStoreId; }
Fail if there is no space after / **:
class LoginForm { /** * @Annotation\Type("text") * @Annotation\Options({"label":"Store ID:"}) * @Annotation\Required(true) * @Annotation\Filter({"name":"StringTrim"}) * @Annotation\Validator({"name":"StringLength","options":{"min":2,"max":64}}) */ public $sStoreId; }
source share