Zend_Validate_Db_RecordExists with Doctrine 2?
问题 I'm using Doctrine 2 in a Zend Framework application and require functionality similar to Zend_Validate_Db_RecordExists and Zend_Validate_Db_NoRecordExists. For example, when a user enters a new item, I need to validate that a duplicate entry doesn't already exist. This is easy to accomplish with Zend_Db by adding the Db_NoRecordExists validator on my forms. I tried implementing the custom-validator solution proposed here, but I can't figure out how they are communicating with Doctrine to