Add getBelongsTo and getHasMany hooks