Add this->app to the model classes