src/Orangehill/Iseed/Iseed.php
public function repackSeedData($data)
    {
        if (!is_array($data)) {
            $data = $data->toArray();
        }
        $dataArray = array();
        if (!empty($data)) {
            foreach ($data as $row) {
                $rowArray = array();
                foreach ($row as $columnName => $columnValue) {
                    $rowArray[$columnName] = $columnValue;
                }
                $dataArray[] = $rowArray;
            }
        }
        return $dataArray;
    }
public function repackSeedData($data)
    {
        if (!is_array($data)) {
            $data = $data->toArray();
        }
        $dataArray = array();
        if (!empty($data)) {
            foreach ($data as $row) {
                $rowArray = array();
                foreach ($row as $columnName => $columnValue) {
                    $rowArray[$columnName] = $columnValue;
                }
                $dataArray[] = $rowArray;
            }
        }
        return $dataArray;
    }
public function repackSeedData ( $ data ) { if ( ! is_array ( $ data ) ) { $ data = $ data -> toArray ( ) ; } $ dataArray = array ( ) ; if ( ! empty ( $ data ) ) { foreach ( $ data as $ row ) { $ rowArray = array ( ) ; foreach ( $ row as $ columnName => $ columnValue ) { $ rowArray [ $ columnName ] = $ columnValue ; } $ dataArray [ ] = $ rowArray ; } } return $ dataArray ; }
Repacks data read from the database
@param  array|object $data
@return array
Repacks data read from the database