Zend Framework get dependent rows following a certain condition
I want to retrieve rows from a dep开发者_如何学Goendent table that follows a given criteria in the dependent table.
If you're using table relationships, you can provide a Zend_Db_Table_Select
object as an argument to findDependentRowset
$row->findDependentRowset($table, $rule, $select);
See more info at http://framework.zend.com/manual/en/zend.db.table.relationships.html#zend.db.table.relationships.fetching.dependent
You need to use a join http://framework.zend.com/manual/en/zend.db.select.html#zend.db.select.building.join
But with no more info that's all I can give
精彩评论