Everytime I try to use SaveMulti with a collection of objects, on which I coded a validator class, this is the problem that i get:
It looks like the validate statement ( which is a dao.GetScalar ) uses its own transaction, while the update/insert commands use another transation. When this problem occurs, the second update/insert command bumps on a locked table, and I get a timeout expired message. I cannot find the transaction that u/i command uses while I'm in the validator class. How can I avoid this error ?
In the meantime, I have stopped using Collections.SaveMulti, and I manually code every Collection.entity.save. That way, the problem does not occur, but I would prefer that the function is automated using SaveMulti, rather than having to do it manually each time with Collection.entity.save.
Thank you for your assistance