I am getting different results from findManyToManyRowset on my production 
server to that of my test server.
Test server has Zend Framework version 10.0.0, production server has Zend 
Framework version 10.0.8.

Was there a change in functionality of findManyToManyRowset between these two 
versions?

This is not a major issue for me because i can either upgrade test server or 
downgrade production server.
However if there was i change i would like to understand it, so that i can 
adjust my code accordingly moving forwards.

In my controller i have;


// First get the record for the order header, and pass it to the view.

$model = new Cards_Model_Orders;

$order = $model->fetchRow('order_id=' . $this->_getParam('order_id'));

$this->view->order = $order;



// Now get the lines that belong to this order, and assign them to the view as 
well.

$lines = $order->findManyToManyRowset('Cards_Model_Products', 
'Cards_Model_OrderLines');

$this->view->lines = $lines;


In my model i have;


<?php

class Cards_Model_OrderLines extends Cards_Model_DBTable

{

/** Table name and primary key */

protected $_name = 'order_lines';

protected $_primary = 'order_line_id';

/** Reference Map*/

protected $_referenceMap = array(

'Order' => array(

'columns' => array('order_id'), // Refering Column (Foreign Key)

'refTableClass' => 'Cards_Model_Orders', // Class Name

'refColumns' => 'order_id' // Primary Key

),

'Product' => array(

'columns' => array('product_id'), // Refering Column (Foreign Key)

'refTableClass' => 'Cards_Model_Products', // Class Name

'refColumns' => 'product_id' // Primary Key

)

);

}


any advice appreciated.
Steve


________________________________
-
Williams Refrigeration is a trading name of AFE Group Limited.
Registered in England & Wales under Registered Number 3872673. Registered
Office Address - Bryggen Road, North Lynn, Industrial Estate, Kings Lynn, 
Norfolk, PE30 2HZ

Williams Refrigeration filters email attachments for spam and viruses and 
malicious content with Sophos Puremessage. While every care has been made to 
ensure that this message is secure and virus free, we cannot be held 
responsible for any damage arising from computer viruses and advise that you 
perform your own checks on this and any other inbound messages.

This e-mail and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error or are having trouble sending email to us 
please notify the system administrator - [email protected]

Any views or opinions expressed in this e-mail are those of the sender and do 
not necessarily coincide with those of Williams Refrigeration or the AFE Group.

Reply via email to