From alan at alanseiden.com Fri Apr 9 18:32:28 2010 From: alan at alanseiden.com (Alan Seiden) Date: Fri, 09 Apr 2010 18:32:28 -0400 Subject: [zendframework] next ZF SIG meetup Message-ID: <4BBFAAFC.2040009@alanseiden.com> Dear New York Zend Framework SIG, Our next meetup will be on May 25, 2010, following the NY-PHP meeting that evening. There's no ZF SIG meetup in April, but I encourage everyone to attend Justin Dearing's talk about PHP Internals on April 27. For more info on NY-PHP, go to http://www.nyphp.org. Yours in ZF, Alan -- Alan Seiden Specialist, PHP for IBM i Zend Certified Engineer for Zend Framework PHP/i solutions, Strategic Business Systems, Inc. alan at alanseiden.com | 201-327-8746 x144 | blog/articles: alanseiden.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From claudiotaunay at gmail.com Fri Apr 9 23:46:26 2010 From: claudiotaunay at gmail.com (Claudio Taunay) Date: Sat, 10 Apr 2010 00:46:26 -0300 Subject: [zendframework] (no subject) Message-ID: -- -- Claudio de Taunay Cordeiro Melo Advogado Tel: 21 2262-8630 Fax: 21 2240-7812 www.taunay.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: From david at davidmintz.org Mon Apr 19 10:24:06 2010 From: david at davidmintz.org (David Mintz) Date: Mon, 19 Apr 2010 10:24:06 -0400 Subject: [zendframework] findManyToManyRowset() without all the columns from match table? Message-ID: I tried this on the Zend list three days ago, no takers. So... suppose you have $rowset = $row->findManyToManyRowset('MyMatchTableClass', 'MyIntersectionTableClass'); but you don't want MyMatchTableClass.* (all columns from matching table) in the resulting rowset, just a couple. I have seen examples showing how to pass a $select with ORDER and LIMIT clauses (and have diddled around with the $select to no avail), but I've found nothing regarding this particular issue. In my case, we have a many-to-many relationship between interpreters (translators) and the "foreign" languages in which they work (English is assumed). I am doing this in the controller: $interps = new Model_DbTable_Interpreters; $interpreter = $interps->find(1)->current(); $select = $interpreter->select(); $languages = $interpreter->findManyToManyRowset('Model_DbTable_Languages', 'Model_DbTable_InterpretersLanguages' ,null,null,$select->order('m.name ASC') ); Zend_Debug::dump($languages->toArray()); // all columns from languages table are there And ZF is doing this beneath the hood: SELECT `m`.* FROM `interpreters_languages` AS `i` INNER JOIN `languages` AS `m` ON `i`.`language_id` = `m`.`id` WHERE (`i`.`interpreter_id` = 1) ORDER BY `m`.`name` ASC Gratefully, -- Support real health care reform: http://phimg.org/ -- David Mintz http://davidmintz.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: