public function setClassName($className)
    {
        if ($this->_targetTable !== null &&
            get_class($this->_targetTable) !== App::className($className, 'Model/Table', 'Table')
        ) {
            throw new InvalidArgumentException(
                'The class name doesn\'t match the target table\'s class name.'
            );
        }

        $this->_className = $className;

        return $this;
    }