Fix and details

The first commit show you how it should be if the doctrine havn't a bug. and the rest show you how to perform a working case