doctrine, example with documentation