Thanks for offering to help.

Below I have pasted **ModelName** and included table structure and
associations.

**User**

CREATE TABLE `users` (
  `id` int(11) NOT NULL auto_increment,
  `fb_id` int(11) NOT NULL,
  `created` datetime NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;

var $hasMany = array('Tag', 'VideoList');

**Video**

CREATE TABLE `videos` (
  `id` int(11) NOT NULL auto_increment,
  `source` varchar(255) NOT NULL,
  `source_id` varchar(255) NOT NULL,
  `title` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `duration` int(11) NOT NULL,
  `embed` tinyint(1) NOT NULL,
  `created` datetime NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;

var $hasMany = array('VideoItem');

**VideoItem**

CREATE TABLE `video_items` (
  `id` int(11) NOT NULL auto_increment,
  `video_id` int(11) NOT NULL,
  `video_list_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `votes` int(11) NOT NULL default '0',
  `created` datetime NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;

var $belongsTo = array('User', 'VideoList', 'Video');
var $hasMany = array('VideoItemVote', 'VideoItemFavorite');

**VideoList**

CREATE TABLE `video_lists` (
  `id` int(11) NOT NULL auto_increment,
  `user_id` int(11) NOT NULL,
  `title` varchar(100) NOT NULL,
  `slug` varchar(100) NOT NULL,
  `votes` int(11) NOT NULL default '0',
  `views` int(11) NOT NULL default '0',
  `videos` int(11) NOT NULL default '0',
  `created` datetime NOT NULL,
  PRIMARY KEY  (`id`),
  FULLTEXT KEY `title` (`title`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;

var $hasAndBelongsToMany = array('Tag');
var $belongsTo = array('User');
var $hasMany = array('VideoItem', 'VideoListView', 'VideoListVote',
'VideoListFavorite');


On Mar 23, 5:25 pm, Miles J <mileswjohn...@gmail.com> wrote:
> Make sure your relations match correctly and that your associations do
> not have the same name. If they have the same name, it will break if 2
> identical associations are matched.
>
> Can we also see your table structure and associations.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to