I am wondering about using the abstraction in Zend Db RowSet instead of joins, is it possible for instance I am able to get some info from parent table as in here
/**
* 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();
}
}
Bunu nasıl mantık çalışma almak için Rowset soyutlama kullanabilirsiniz
table( id, pic_path,) table_translation(id, table_id, lang_id, pic_title);
iki tablo temsili üzerinde, fikir lang_id belirterek her iki tablodan bilgi almak için, bu katıldı kolay ama ben DB satır kümesi soyutlama ile yapabilirsiniz?