Add access to entity model in observer, and add a getter for categories.