/** * Performs check before row is saved * * @throws Gpf_DbEngine_Row_ConstraintException */ protected function beforeSaveCheck() { foreach ($this->table->getConstraints() as $constraint) { $constraint->validate($this); } }