Fix custom parent field in mode 4.

If the parent reference field is not named pid,
the name must read from getParentChildCondition().
Merge pull request #83 from tristanlins/hotfix/custom-pid-field

Fix custom parent field in mode 4.