이며, 그것은 내가젠드 DD 행 집합 점점 상위 행
/**
* Get default photo info (path , description)
*/
public function getDefaultPhotoInfo($userdId){
$select = $this->select($this)
->where('id=?', $userdId);
$rowset = $this->fetchAll($select);
$current = $rowset->current();
$res = $current->findParentRow('UserPhotos', 'Avatar');
if(isset($res)){
return $res->toArray();
}
}
여기에서와 같이 부모 테이블에서 일부 정보를 얻을 수 있어요 예를 들어 수 어떻게이 LANG_ID를 지정하는 두 테이블에서 정보를 얻기 위해 위의 두 테이블의 표현이
table(id, pic_path,) table_translation(id, table_id, lang_id, pic_title);
작업이 논리를 얻기 위해 행 집합 추상화, 아이디어입니다 사용할 수 있습니다, 그것은 조인 간단하지만 난 그것을 할 수 있습니다 Db 행 집합의 추상화와 함께?