public function merge($masterPk, $alias, array $rows, $junction, $column, $table, $pk, $columns)
    {
        foreach ($rows as &$row) {
            $value = $row[$masterPk];
            $row[$alias] = $this->getSlaveData($table, $pk, $junction, $column, $value, $columns);
        }

        return $rows;
    }
public function merge($masterPk, $alias, array $rows, $junction, $column, $table, $pk, $columns)
    {
        foreach ($rows as &$row) {
            $value = $row[$masterPk];
            $row[$alias] = $this->getSlaveData($table, $pk, $junction, $column, $value, $columns);
        }

        return $rows;
    }
public function merge ( $ masterPk , $ alias , array $ rows , $ junction , $ column , $ table , $ pk , $ columns ) { foreach ( $ rows as & $ row ) { $ value = $ row [ $ masterPk ] ; $ row [ $ alias ] = $ this -> getSlaveData ( $ table , $ pk , $ junction , $ column , $ value , $ columns ) ; } return $ rows ; }
Merges as many-to-many

@param string $masterPk Primary key name from the master table
@param string $alias Virtual column to be appended
@param string $junction Junction table name
@param string $column Column name from junction table to be selected
@param string $table Slave table name table
@param string $pk PK column name in slave table
@return array
Merges as many - to - many