Skip to content

Instantly share code, notes, and snippets.

View am-doherty's full-sized avatar

Anthony Doherty am-doherty

  • Liverpool, UK
View GitHub Profile
@am-doherty
am-doherty / gist:4673875
Last active December 11, 2015 22:59
flightCheckFail - a pre-validation example for Propel (v 1.6.4) fields. Overcomes a limitation with (some) validators that require correct data in the object before validation can take place
/* flightCheckFail - a pre-validation example for Propel (v 1.6.4) fields
*
* Overcomes a limitation with (some) validators that require correct data in the object before validation can take place.
* Example below uses date field
*
* A.M. Doherty 22nd March 2012
* read more here: http://stackoverflow.com/questions/9570570/propel-orm-version-1-6-4-understanding-validators
* and here: http://codeandeffect.co.uk/blog/2012/programming/php/flight-checking-values-for-propel/
*/