[baseten-users] object validation - how it's supposed to work

Jianhua Meng jh_meng at mac.com
Thu Oct 22 23:56:01 EEST 2009


Upon more careful investigation, I realized BX does not offer much in  
the way of automatic error checking. I guess we are on our own for  
now.  Please ignore my previous email.

Jianhua

On Oct 22, 2009, at 11:10 AM, Jianhua Meng wrote:

>
> Hi Tuukka,
>
> Under CoreData, object validation happens automatically when the  
> underlying editing context is saved. So methods such as  
> validateForInsert:, validateForUpdate:, validateValue:forKey:error:  
> are called automatically. Does BX work the same with regards to  
> object validation?
>
> From my limited experiment with BX, these methods are not called  
> automatically when I save a databaseContext. Any tips will be  
> greatly appreciated. willSave is not called automatically either.
>
> Anyone on the list has the answer?
>
> Thanks.
>
> Jianhua
> Quick Ceph Systems, Inc
>
> _______________________________________________
> baseten-users mailing list
> baseten-users at lists.basetenframework.org
> http://lists.basetenframework.org/mailman/listinfo/baseten-users




More information about the baseten-users mailing list