Update RelationModel.class.php