Issue Type: Improvement Created: 2007-11-08T16:54:41.000+0000 Last Updated: 2008-03-21T16:25:45.000+0000 Status: Resolved Fix version(s): - 1.5.0 (17/Mar/08)
Reporter: Étienne Bersac (bersace) Assignee: Simon Mundy (peptolab) Tags: - Zend_Db_Table
Related issues: Attachments: - zend-db-table-extendend-relationship-query.patch
In Zend_Db_Table_Row, you can easily fetch dependent table rows and parent rows via foreign keys. Unlike fetchAll(), findDependentRowset() and findParentRow() and findManyToMany() does not allow to set specific where, order, count and offset clauses. The patch attached add these parameters to the formers functions.
Magics function findTables, findParentTables and findTablesViaTables are handled as well.
I use patche Zend_Db_Table_Row_Abstract for some weeks without problems.
Posted by Étienne Bersac (bersace) on 2007-11-08T16:56:04.000+0000
Here is the promised patch. Docblocks are updated too.
Posted by Darby Felton (darby) on 2007-11-09T08:39:58.000+0000
Hi, [~bersace], have you submitted a signed CLA yet? Until we have proof that we have license to do so, we cannot use the attached patch as-is.
Please complete a CLA for us so that we can directly use additional contributions from you. :) Thanks!
Posted by Darby Felton (darby) on 2007-11-09T10:30:37.000+0000
I see that you have submitted a CLA - thank you! Once this has been processed, we can incorporate your contributions with Zend Framework. Welcome to the framework development community! :)
Posted by Étienne Bersac (bersace) on 2007-11-09T10:56:43.000+0000
I wish you'll like the patch.
Posted by Étienne Bersac (bersace) on 2007-11-09T14:47:56.000+0000
My CLA is Ok, thanks to Melissa. I now belong to zf-framework-dev group.
Posted by Simon Mundy (peptolab) on 2008-02-16T21:05:37.000+0000
Hi Etienne - these enhancements have been covered off in the Zend_Db_Table Enhancements proposal and are already up-and-running as of ZF1.5 PR1 - I encourage you to try them out and send your feedback.
Have you found an issue?
See the Overview section for more details.