Add default function getParentKeys for models