/** * Get an archived version of the current object. * * @param PropelPDO $con Optional connection object * * @return An archive object, or null if the current object was never archived */ public function getArchive(PropelPDO $con = null) { if ($this->isNew()) { return null; } $archive = ::create() ->filterByPrimaryKey($this->getPrimaryKey()) ->findOne($con); return $archive; }