We know how specific properties can be checked, but we still need a way to validate the consistence of the whole object, so that e.g. invariants of an object are ensured before its data is stored in the database. The framework defines the following methods for that purpose:
The two first methods simply calls the third one. The fourth one verifies a particular set of constraints we'll see in a moment.