src/AbstractDbEntity.php
public static function filterStripDbRowData(array $rowData, $dbTableAlias, $skipStrip = false)
    {
        $columnPrefix = $dbTableAlias . '_';

        $filteredAndStrippedRowData = [];
        foreach ($rowData as $key => $val) {
            if (strpos($key, $columnPrefix) === 0) {
                $strippedKey = $skipStrip ? $key : Str::stripLeft($key, $columnPrefix);
                $filteredAndStrippedRowData[$strippedKey] = $val;
            }
        }

        return $filteredAndStrippedRowData;
    }
public static function filterStripDbRowData(array $rowData, $dbTableAlias, $skipStrip = false)
    {
        $columnPrefix = $dbTableAlias . '_';

        $filteredAndStrippedRowData = [];
        foreach ($rowData as $key => $val) {
            if (strpos($key, $columnPrefix) === 0) {
                $strippedKey = $skipStrip ? $key : Str::stripLeft($key, $columnPrefix);
                $filteredAndStrippedRowData[$strippedKey] = $val;
            }
        }

        return $filteredAndStrippedRowData;
    }
public static function filterStripDbRowData ( array $ rowData , $ dbTableAlias , $ skipStrip = false ) { $ columnPrefix = $ dbTableAlias . '_' ; $ filteredAndStrippedRowData = [ ] ; foreach ( $ rowData as $ key => $ val ) { if ( strpos ( $ key , $ columnPrefix ) === 0 ) { $ strippedKey = $ skipStrip ? $ key : Str :: stripLeft ( $ key , $ columnPrefix ) ; $ filteredAndStrippedRowData [ $ strippedKey ] = $ val ; } } return $ filteredAndStrippedRowData ; }
Filters a full db item array by it's table alias and the strips the table alias.

@param array  $rowData
@param string $dbTableAlias
@param bool   $skipStrip For cases when you want to filter only (no stripping)
@return array
Filters a full db item array by it s table alias and the strips the table alias .