/** * Shorthand save an object if it is instantiated with app context. * * @return Response|null * @throws Exception */ public function save() { if ($this->_application === null) { throw new Exception('->save() is only available on objects that have an injected application context.'); } return $this->_application->save($this); }