Set object id and initiate parent_ids array