var $belongsTo = array(
'Store' => array(
'className' => 'Store',
'foreignKey' => 'store_id'
))
var $hasMany = array(
'Product' => array(
'className' => 'Product',
'foreignKey' => 'store_id'
))
내가 모든 상점의 목록과 그들이 가지고있는 제품의 수를 싶어. 해당 데이터 유형을 반환하려면 전화 번호 : $this->Store->find('all', array(<..some conditions..>))
을 어떻게 수정해야합니까?
CakePHP의 버전을? –
cake v1.3 ....... – yossi