cakephp model 不引入$uses 写法

A hasOne B, B hasMany B1, B1 hasMany B2

A hasMany C

A hasAndBelongsToMany D

$uses = array('A');

$b = $this->A->B->find('list');

$b2 = $this->A->B->B1->B2->find('list');


posted @ 2012-05-24 17:14  lein.wang  Views(87)  Comments(0Edit  收藏  举报