public function prefixWhereWithTable($data, $tableName)
    {
        if (count($data) == 0) {
            return $data;
        }

        foreach ($data as $key => $v) {
            $newKey        = $tableName . '.' . trim($key, '`');
            $data[$newKey] = $v;
            unset($data[$key]);
        }

        return $data;
    }
public function prefixWhereWithTable($data, $tableName)
    {
        if (count($data) == 0) {
            return $data;
        }

        foreach ($data as $key => $v) {
            $newKey        = $tableName . '.' . trim($key, '`');
            $data[$newKey] = $v;
            unset($data[$key]);
        }

        return $data;
    }
public function prefixWhereWithTable ( $ data , $ tableName ) { if ( count ( $ data ) == 0 ) { return $ data ; } foreach ( $ data as $ key => $ v ) { $ newKey = $ tableName . '.' . trim ( $ key , '`' ) ; $ data [ $ newKey ] = $ v ; unset ( $ data [ $ key ] ) ; } return $ data ; }
Prefix fields from where associated array
with table name

@param array  $data      - associative array with where data
@param string $tableName - table name to use as prefix

@return mixed
Prefix fields from where associated array with table name