public function setEntityClass($name)
    {
        $class = App::className($name, 'Model/Entity');
        if (!$class) {
            throw new MissingEntityException([$name]);
        }

        $this->_entityClass = $class;

        return $this;
    }
public function setEntityClass($name)
    {
        $class = App::className($name, 'Model/Entity');
        if (!$class) {
            throw new MissingEntityException([$name]);
        }

        $this->_entityClass = $class;

        return $this;
    }
public function setEntityClass ( $ name ) { $ class = App :: className ( $ name , 'Model/Entity' ) ; if ( ! $ class ) { throw new MissingEntityException ( [ $ name ] ) ; } $ this -> _entityClass = $ class ; return $ this ; }
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
Sets the class used to hydrate rows for this table .