original_string: public function onRemoveAttachment()
      {
          $fileModel = $this->getRelationModel();
          if (($fileId = post('file_id')) && ($file = $fileModel::find($fileId))) {
              $this->getRelationObject()->remove($file, $this->sessionKey);
          }
      }
code: public function onRemoveAttachment()
      {
          $fileModel = $this->getRelationModel();
          if (($fileId = post('file_id')) && ($file = $fileModel::find($fileId))) {
              $this->getRelationObject()->remove($file, $this->sessionKey);
          }
      }
code_tokens: public function onRemoveAttachment ( ) { $ fileModel = $ this -> getRelationModel ( ) ; if ( ( $ fileId = post ( 'file_id' ) ) && ( $ file = $ fileModel :: find ( $ fileId ) ) ) { $ this -> getRelationObject ( ) -> remove ( $ file , $ this -> sessionKey ) ; } }
docstring: Removes a file attachment.
docstring_tokens: Removes a file attachment .