[sqlalchemy] Deleted rowcount x does not match number of objects deleted y [PART 2]
I am really sorry but I pressed POST before I was ready. So again the code (without comments) session = Session() order = session.query(dbOutOrder).get(2) for line in order.lines: session.delete(line) session.flush() for i in range(1,10):
[sqlalchemy] Deleted rowcount x does not match number of objects deleted y
Hi, I guess I am doing something wrong but looking on 'raw' SQL it looks fine. My code: session = Session() order = session.query(dbOutOrder).get(2) for line in order.lines: session.delete(line) session.flush() #session.commit() for i in range(1,