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.
在 Zend Framework 中,我可以使用漂亮的验证器Zend\Validate\Db\NoRecordExists来验证重复记录。Symfony 2 中是否存在类似的验证器,我该如何使用它?
Zend\Validate\Db\NoRecordExists
您可以在 symfony 中使用Unique Entity来验证模型中的特定字段是否唯一。