/** * * gets the last update, either of the schema or the history * * @param int $id * * @throws PropelException * @return integer */ public static function getLastUpdateDate($id) { $schema = self::retrieveByPK($id); if ($schema) { $lastSchemaUpdate = $schema->getUpdatedAt(null); } $lastHistoryUpdate = SchemaPropertyElementHistoryPeer::getLastUpdateForSchema($id, null); $result = max(array($lastHistoryUpdate, $lastSchemaUpdate)); return $result; }