Multiple validation rules per model field while baking
Bake does a good job of creating models and validations. However, bake does not allow for multiple validation rules on a single field. This is not much of a problem if you have only a few models but when you start to work on several dozen models in a project it becomes very tedious to open each and every model file to make changes.
There has been an enhancement request ticket for allowing multiple validation rules open since three months but I needed the feature NOW()
And if in open source you need something now, you code it yourself and that’s what I did. Now, I can bake models with multiple validation rules and this is how it looks

I have submitted a patch for this to the above ticket. If you like me want the feature now, download the patch here. This patch works for the latest SVN checkout
About this entry
You’re currently reading “ Multiple validation rules per model field while baking ,” an entry on SANIsoft - PHP for E Biz
- Published:
- 4.29.08 / 3pm
- Author:
- Amit Badkas
2 Comments
Jump to comment form | comments rss | trackback uri