public function joinType($type = null)
    {
        deprecationWarning(
            get_called_class() . '::joinType() is deprecated. ' .
            'Use setJoinType()/getJoinType() instead.'
        );
        if ($type !== null) {
            $this->setJoinType($type);
        }

        return $this->getJoinType();
    }