/** * Get the response of a particular user to this poll, if any. * * @param Profile $profile * @return Poll_response object or null */ function getResponse(Profile $profile) { $pr = Poll_response::pkeyGet(array('poll_id' => $this->id, 'profile_id' => $profile->id)); return $pr; }