se stai sviluppando un componente l'associazione così come l'hai descritta la puoi inserire direttamente in un file di testo del tipo
install.com_<nome componente>.sql
inserendo direttamente le query di creazione delle due tabelle...
CREATE TABLE `#__tesista` (
`id` int(11) NOT NULL auto_increment,
`nome` varchar(50) NOT NULL,
`cognome` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
);
CREATE TABLE `#__tirocinio` (
`id` int(11) NOT NULL auto_increment,
`titolo` varchar(255) NOT NULL,
`descrizione` BLOB,
`visibile` bool,
`tesista` int(11) NOT NULL,
PRIMARY KEY (`id`),
FOREIGN KEY (`tesista`) REFERENCES `#__tesista`(`id`)
);