Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は Symfony 2.0 (2.1 ではない) を使用していますが、Doctrine マッピングなどの別の関連情報から検証制約を自動的に推測する方法があるのだろうかと思います。
私がやりたいことは、Doctrine マッピングで指定されたパラメーターに対応するパラメーターを使用してstring、検証制約としてマップされたすべてのプロパティに追加することです。MaxLengthlimitlength
string
MaxLength
limit
length
それを行う方法はありますか?