tags:

views:

127

answers:

1

Hello fellow PHPers!

It does not seem like Doctrine 2 has built-in validation. Is this a feature that will be supported in the future? How and where do you validate your Doctrine 2 entities?

Guess I have to write my own validation engine for Doctrine.

thanks

A: 

There is a separate project for 2.0 branch: DVAL (Doctrine Validator), http://www.doctrine-project.org/jira/secure/Dashboard.jspa . I do not know his current status, because I am very satisfied with Zend_Form + Zend_Validate. Also most frameworks contain validation feature, so you do not need to implement your own.

Vladimir
thanks for answer, maybe i'll stick with Zend_Validate until DVAL is released (seems to be hidden as we speak?)
Hanse