Пример #1
0
	/**
	 * Creates a version of the current object and saves it.
	 *
	 * @param   PropelPDO $con the connection to use
	 *
	 * @return  AbsenceEleveSaisieVersion A version object
	 */
	public function addVersion($con = null)
	{
		$version = new AbsenceEleveSaisieVersion();
		$version->setId($this->getId());
		$version->setUtilisateurId($this->getUtilisateurId());
		$version->setEleveId($this->getEleveId());
		$version->setCommentaire($this->getCommentaire());
		$version->setDebutAbs($this->getDebutAbs());
		$version->setFinAbs($this->getFinAbs());
		$version->setIdEdtCreneau($this->getIdEdtCreneau());
		$version->setIdEdtEmplacementCours($this->getIdEdtEmplacementCours());
		$version->setIdGroupe($this->getIdGroupe());
		$version->setIdClasse($this->getIdClasse());
		$version->setIdAid($this->getIdAid());
		$version->setIdSIncidents($this->getIdSIncidents());
		$version->setIdLieu($this->getIdLieu());
		$version->setDeletedBy($this->getDeletedBy());
		$version->setCreatedAt($this->getCreatedAt());
		$version->setUpdatedAt($this->getUpdatedAt());
		$version->setDeletedAt($this->getDeletedAt());
		$version->setVersion($this->getVersion());
		$version->setVersionCreatedAt($this->getVersionCreatedAt());
		$version->setVersionCreatedBy($this->getVersionCreatedBy());
		$version->setAbsenceEleveSaisie($this);
		$version->save($con);
	
		return $version;
	}