私はこれで頭を壁にぶつけて何時間も過ごしました。フォーム フィールドのラベルがどうしても表示されませんでした。
最後に、カーソルがある場所に余分なスペースがないと (画像を参照)、すべての注釈が無視されることがわかりました。Doctrine Common 2.2.3 で ZF 2.1.1 を使用しています。
私は何か間違ったことをしていますか?それとも、これは ZF または Doctrine パーサーのバグですか?
作品:
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;
}
/** の後にスペースがない限り、失敗します。
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;
}