original_string: public function getReferenceForModelMetaReferenceByKey(ModelMetaReferenceInterface $referenceData, $key)
      {
          $query = $this->getQueryBuilderForModelClass($referenceData->model());
  
          /** @var Model $model */
          $model = $query->find($key);
  
          if ( ! $model) return false;
  
          return $this->getReferenceForModelMetaReferenceByModel($referenceData, $model);
      }
code: public function getReferenceForModelMetaReferenceByKey(ModelMetaReferenceInterface $referenceData, $key)
      {
          $query = $this->getQueryBuilderForModelClass($referenceData->model());
  
          /** @var Model $model */
          $model = $query->find($key);
  
          if ( ! $model) return false;
  
          return $this->getReferenceForModelMetaReferenceByModel($referenceData, $model);
      }
code_tokens: public function getReferenceForModelMetaReferenceByKey ( ModelMetaReferenceInterface $ referenceData , $ key ) { $ query = $ this -> getQueryBuilderForModelClass ( $ referenceData -> model ( ) ) ; /** @var Model $model */ $ model = $ query -> find ( $ key ) ; if ( ! $ model ) return false ; return $ this -> getReferenceForModelMetaReferenceByModel ( $ referenceData , $ model ) ; }
docstring: Returns a reference for a model class, by meta reference data.
  
  @param ModelMetaReferenceInterface $referenceData
  @param                             $key
  @return string|false     false if the model could not be found
docstring_tokens: Returns a reference for a model class by meta reference data .