Set doctrine