 According to Carita Parahyangan, Sanna was the King of Galuh that was usurped by his cousin, Purbasora.In this book, Sanjaya is described as the son of Sanna, rather than his nephew.So, to avenge his father's defeat, Sanjaya attacked Galuh with a special force and killed Purbasora along with his family.