services/NorthWind/NorthWindQueryProvider.php
/**
     * Serialize the sql row into Order_Details object
     * 
     * @param array $record each row of order detail
     * 
     * @return object
     */
Serialize the sql row into Order_Details object

@param array $record each row of order detail

@return object
Serialize the sql row into Order_Details object @param array $record each row of order detail @return object
private function _serializeOrderDetail($record)
    {
        $order_details = new Order_Details();
        $order_details->Discount = $record['Discount'];
        $order_details->OrderID = $record['OrderID'];
        $order_details->ProductID = $record['ProductID'];
        $order_details->Quantity = $record['Quantity'];
        $order_details->UnitPrice = $record['UnitPrice'];
        return $order_details; 
    }
private function _serializeOrderDetail ( $ record ) { $ order_details = new Order_Details ( ) ; $ order_details -> Discount = $ record [ 'Discount' ] ; $ order_details -> OrderID = $ record [ 'OrderID' ] ; $ order_details -> ProductID = $ record [ 'ProductID' ] ; $ order_details -> Quantity = $ record [ 'Quantity' ] ; $ order_details -> UnitPrice = $ record [ 'UnitPrice' ] ; return $ order_details ; }
Serialize the sql row into Order_Details object
Serialize the sql row into Order_Details object