General information
Category:
The Mere Mortals Framework
>Rex,
>
><>
>
>I definitely see your point...I could go either way on it. Right now my only worry is breaking existing code...again, any other lurkers out there with an opinion?
>
>Regards,
I always have an opinion... If the presavehook fails, then the save fails. But if the save fails, so does the entire transaction. One of the goals of three tier design is to isolate business rules from the data layer and the interface. But does RI belong in the middle tier or the data tier? In other words, it is the repsonsibility of the bizobj to populate the values, but the database should be responsible for basic Referential Integrity.
That said, I don't beleive the rules check needs to be run before the presave hook. A sound database design should take care of these problems.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only