public function relabeledClone($changeMap = [])
    {
        $newParentAlias = ArrayHelper::getValue($changeMap, $this->parentAlias, $this->parentAlias);
        $tableAlias = ArrayHelper::getValue($changeMap, $this->tableAlias, $this->tableAlias);
        $join = new static();
        $join->setTableName($this->getTableName());
        $join->setParentAlias($newParentAlias);
        $join->setTableAlias($tableAlias);
        $join->setJoinType($this->getJoinType());
        $join->setJoinField($this->getJoinField());
        $join->setNullable($this->getNullable());

        return $join;
    }
public function relabeledClone($changeMap = [])
    {
        $newParentAlias = ArrayHelper::getValue($changeMap, $this->parentAlias, $this->parentAlias);
        $tableAlias = ArrayHelper::getValue($changeMap, $this->tableAlias, $this->tableAlias);
        $join = new static();
        $join->setTableName($this->getTableName());
        $join->setParentAlias($newParentAlias);
        $join->setTableAlias($tableAlias);
        $join->setJoinType($this->getJoinType());
        $join->setJoinField($this->getJoinField());
        $join->setNullable($this->getNullable());

        return $join;
    }
public function relabeledClone ( $ changeMap = [ ] ) { $ newParentAlias = ArrayHelper :: getValue ( $ changeMap , $ this -> parentAlias , $ this -> parentAlias ) ; $ tableAlias = ArrayHelper :: getValue ( $ changeMap , $ this -> tableAlias , $ this -> tableAlias ) ; $ join = new static ( ) ; $ join -> setTableName ( $ this -> getTableName ( ) ) ; $ join -> setParentAlias ( $ newParentAlias ) ; $ join -> setTableAlias ( $ tableAlias ) ; $ join -> setJoinType ( $ this -> getJoinType ( ) ) ; $ join -> setJoinField ( $ this -> getJoinField ( ) ) ; $ join -> setNullable ( $ this -> getNullable ( ) ) ; return $ join ; }
Clone join with the option of relabeling the aliases.

@param array $changeMap

@return static

@since  1.1.0

@author Eddilbert Macharia (http://eddmash.com) <edd.cowan@gmail.com>

@throws \Eddmash\PowerOrm\Exception\KeyError
Clone join with the option of relabeling the aliases .