I have a similar problem. all connections disappeared after updating plugin in front-end and back-end. I can add new connection, but will be lost after saving. I tried to solve the problem using the instructions on the wiki, but without success.
Here is my code http://pastebin.com/cpZWwCuP. I use wp 3.4.2 and p2p plugin 1.4.3
thaks for help