ttgive / qeephp

Automatically exported from code.google.com/p/qeephp
0 stars 0 forks source link

ActiveRecord 应该允许为属性指定自定义的验证方法 #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
使用自定义的验证方法,可以方便对特定属性进行验证

Original issue reported on code.google.com by dualf...@gmail.com on 22 May 2008 at 12:23

GoogleCodeExporter commented 9 years ago
自定义验证方法,需要 ActiveRecord_Meta 
能够添加支持针对特定属性的验证方法。验证方法还
存在一个“调用时机”问题。例如 validateUsername() 
验证方法可能只有在创建记录时才调用。

Original comment by dualf...@gmail.com on 22 May 2008 at 6:12

GoogleCodeExporter commented 9 years ago
completed

Original comment by dualf...@gmail.com on 23 May 2008 at 7:57