/** * Checks whether the current state must be recorded as a version * * @return boolean */ public function isVersioningNecessary($con = null) { if ($this->alreadyInSave) { return false; } if (AbsenceEleveSaisiePeer::isVersioningEnabled() && ($this->isNew() || $this->isModified())) { return true; } return false; }