Update relationship.php

Deprecated function fix