original_string: public function setEntityClass($name)
      {
          $class = App::className($name, 'Model/Entity');
          if (!$class) {
              throw new MissingEntityException([$name]);
          }
  
          $this->_entityClass = $class;
  
          return $this;
      }
code: public function setEntityClass($name)
      {
          $class = App::className($name, 'Model/Entity');
          if (!$class) {
              throw new MissingEntityException([$name]);
          }
  
          $this->_entityClass = $class;
  
          return $this;
      }
code_tokens: public function setEntityClass ( $ name ) { $ class = App :: className ( $ name , 'Model/Entity' ) ; if ( ! $ class ) { throw new MissingEntityException ( [ $ name ] ) ; } $ this -> _entityClass = $ class ; return $ this ; }
docstring: Sets the class used to hydrate rows for this table.
  
  @param string $name The name of the class to use
  @throws \Cake\ORM\Exception\MissingEntityException when the entity class cannot be found
  @return $this
docstring_tokens: Sets the class used to hydrate rows for this table .