ttgive / qeephp

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

ActiveRecord 验证数据时,应该忽略值为 null 的属性 #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
有些属性是允许设置为 null 
的。因此在验证数据时,如果这些属性的值是 null,则
不对这些属性进行验证。但是,如果该属性的验证规则中指��
�了 not_null,则必须进
行验证。

Original issue reported on code.google.com by dualf...@gmail.com on 15 May 2008 at 6:33

GoogleCodeExporter commented 9 years ago
是否进行 not_null 验证,以 Model 的定位为准

Original comment by dualf...@gmail.com on 21 Sep 2008 at 6:47