Second part of doctrine commit