Skip to main content

Collection Rename

The Model.OnCollectionRename method allows you to listen to when the collection corresponding to the model is renamed in the database.

Usage

CastleModel.OnCollectionRename(func() {
	fmt.Println("Castle collection renamed")
})