Finds parent id when child entry is creating