12
           
            
                
     
    
    I have two related tables, which I would like to get data through XoopsPersistableObjectHandler.
 class pfawlAutorHandler extends XoopsPersistableObjectHandler 
{ 
    function getAutorzy($criteria=null) 
    { 
        $osoba_handler = xoops_getModuleHandler('osoba'); 
        $this->field_link = $osoba_handler->keyName; 
        $this->field_object = "FKid_osoby"; 
        $this->table_link = $osoba_handler->table; 
      $ret = $this->getByLink($criteria); 
      return $ret; 
    } 
}  
and my script
 $autor_handler = xoops_getmodulehandler('autor'); 
$objs = $autor_handler->getAutorzy();  
I can see in the logger that the SQL query is submitted correctly. Fired directly in the database returns the contents of both tables. But $objs contains the fields from only one table.
I do not know if this is possible (using getByLink method).