Jump to content

CakePHP multiple hasone relations issue


cluelessnoob

Recommended Posts

I'm trying to create a page for organizing comic books. One table needs to have multiple hasone relations and I can't figure out how to do it. Any help would be appreciated. Here's what I have so far:

 

<?

class Comic extends AppModel {

var $name = 'Comic';

var $belongsTo = array('User');

var $hasOne = array('Artist'),

array('Author'),

array('Rating'),

array('Publisher');

}

?>

Link to comment
https://forums.phpfreaks.com/topic/170601-cakephp-multiple-hasone-relations-issue/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.