src/Norm/Connection.php
public function unmarshall($object)
    {
        if (isset($object['id'])) {
            $object['$id'] = $object['id'];
            unset($object['id']);
        }

        foreach ($object as $key => $value) {
            if ($key[0] === '_') {
                $key[0] = '$';
                $object[$key] = $value;
            }
        }

        return $object;
    }
public function unmarshall($object)
    {
        if (isset($object['id'])) {
            $object['$id'] = $object['id'];
            unset($object['id']);
        }

        foreach ($object as $key => $value) {
            if ($key[0] === '_') {
                $key[0] = '$';
                $object[$key] = $value;
            }
        }

        return $object;
    }
public function unmarshall ( $ object ) { if ( isset ( $ object [ 'id' ] ) ) { $ object [ '$id' ] = $ object [ 'id' ] ; unset ( $ object [ 'id' ] ) ; } foreach ( $ object as $ key => $ value ) { if ( $ key [ 0 ] === '_' ) { $ key [ 0 ] = '$' ; $ object [ $ key ] = $ value ; } } return $ object ; }
Unmarshall single object from data source to associative array.
The unmarshall process is necessary due to different data type provided
by data source. Proper unmarshall will make sure data from data source
that will be consumed by Norm in the accepted form of data.

@see Norm\Connection::marshall()

@param mixed $object Object from data source

@return assoc Friendly norm data
Unmarshall single object from data source to associative array . The unmarshall process is necessary due to different data type provided by data source . Proper unmarshall will make sure data from data source that will be consumed by Norm in the accepted form of data .