in reply to One to one relationship

Howdy!

As you have noted, the hash gives you the mapping in one direction only. To get the other way, you need another hash. Anonymous Monk's offering above is a fine way to get there.

yours,
Michael