propelorm/Propel2 — pull request #156 by cristianoc72 (2012-03-25 22:52:33+00:00)
Title: Remove validation part from Propel core and add Validate behavior

According to #94 issue, we remove the validation part from the Propel core and, at the same time, we add a behavior, to perform validations as easily as in the previous way.

To remove the validation part from the core, we merged @willdurand's remove-validate branch into master (with a couple of fixes in 3 fixtures schemas).

The Validate behavior is based on Symfony Validation Component and exposes about the same api of previous validation system: a ´validate()´ method to perfom validations and a ´getValidationFailures()´ to retrieve validation errors (we're old Propel1 users and we always use the good old validation system).

This behavior is totally configurable in ´schema.xml´. Unfortunately, we was unable to mantain the old xml syntax, but the new beahvior configuration is very easy and readable.