は、この教義エンティティ@ORMアノテーションによる検証規則を生成できますか?
class Product
{
/**
* @ORM\Column(type="string", length=24, nullable=false)
*/
private $title;
}
は私が何とか@ORM注釈によって@Asserts注釈を生成することができます考えます。 この世代の後、私はこのクラスを持っています。
class Product
{
/**
* @Assert\NotBlank()
* @Assert\Length(max="24")
*
* @ORM\Column(type="string", length=24, nullable=false)
*/
private $title;
}
@Assert \ Length(max = "24")を意味しますか? –
はい、そうです。固定 –