public function hookUpdateSearchIndex(\Spot\Mapper $mapper) { $result = $mapper->upsert('Entity_Event_Search', array('event_id' => $this->id, 'body' => $this->title . ' ' . $this->description), array('event_id' => $this->id)); }