Urban Dictionary says that to be in the trenches means: " To have been through a lot together with someone. Specially through hard times. War analogy. "