Hum, is there a reason findManyToManyRowset() does not use $_schema on my
table classes? Inserts work just fine, no problem. But when I attempt to use
findManyToManyRowset, I get table or view does not exist. As well as the
following Notice Error:
Notice: Undefined offset: 2 in
/home/httpd/includes/global/Zend/1.5/Zend/Db/Table/Row/Abstract.php on line
977
I've looked, and that line is a comment line for the __call() overwrite
method. Am I missing something here? This is the calling code:
public function getThumbnailUrl ( Zend_Db_Table_Row $event ) {
if ( $event instanceof Zend_Db_Table_Row ) {
$select = $event->select();
$select->where('MEDIA_FILE_USAGE_CD = ?', 'DIS');
$tmp = $event->findManyToManyRowset('MediaFile', 'EventMediaFile',
null, null, $select );
if ( $tmp->count() > 0 ) {
$tmp2 = $tmp->current();
return Event_Upload::UL_URL . $tmp2->FILE_NM;
} else {
return 'images/trans.gif';
}
}
return 'images/trans.gif';
}
I can vouch that my table classes very well have $_schema defined. As I
stated above, inserts work just fine. find() works. However, when using a
relationship, it fails.
---
Philip
[EMAIL PROTECTED]
http://www.gpcentre.net/