add doctrine