开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜