Return an array of all the ids for the current object and it's parents