#2 jake
在关联的$linker上面,'field' => ''可以设置获取从表的字段,默认为 *
还有limit数量限制,condition附加条件,sort排序等等。
文章
http://speedphp.com/post/splinker-hasone.html的最后:
var $linker = array(
array(
'type' => 'hasmany',
'map' => 'ulink',
'mapkey' => 'user_id',
'fclass' => 'gb',
'fkey' => 'user_id',
'midclass' => 'user2gb',
'sort' => '', 'condition' => '', 'field' => '', 'limit' => '', 'enabled' => true, 'countonly' => false
),
array(
...
)
);
2010-11-19 09:01:54