Re: [Modeling-users] Newbie question =)
Status: Abandoned
Brought to you by:
sbigaret
From: Sebastien B. <sbi...@us...> - 2004-02-25 21:41:08
|
Sebastien Bigaret <sbi...@us...> wrote: > Well, I would advise you not to change anything in the validation logic. > Even if nothing prevents you from doing this, there isn't much situation > which requires modification of the objects graph in validation methods. > To put it differently, i'd say that the validation logic is here to > prevent any bug or unhandled situations to be able to corrupt objects / > database invariants in any ways (just an advice, really, nothing in the > framework would prevent you to change objects during the validation > process) However, in most cases you just cannot decide what to do if the validation fails: suppose your validation logic fails because a person has two default bank account, what should be done then? Randomly choose one of them to be the default? Sounds awkward as well, doesnt it :)) -- S=E9bastien. |