Sorry I've been at this for too long. I'm using Cakephp. I have a database called comicdb and a tables called comics and artist. I have a model and controller for called comic and comics_controller respectively. As well as similarly named models and controllers for my six tables. the comics table has a foreign key for each table here is the code for the model:
<?
class Comic extends AppModel {
var $name = 'Comic';
var $belongsTo = array('User');
var $hasOne = array(
'Artist',
'Author',
'Rating',
'Publisher'
);
}
?>
and the controller:
<?
class ComicsController extends AppController {
var $name = 'Comics';
var $scaffold;
}
?>
I'm not sure what other information might be necessary.