开发者

Zend Framework get dependent rows following a certain condition

开发者 https://www.devze.com 2023-01-29 17:37 出处:网络
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 a

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

精彩评论

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

关注公众号