Extending documentation about relation callbacks

Adding an example and other useful information that's not obvious at first (at least it wasn't to me).