setColumn('name', 'string', 30); $class->hasMany('TestMovie as UserBookmarks', array('local' => 'user_id', 'foreign' => 'movie_id', 'refClass' => 'TestMovieUserBookmark')); $class->hasMany('TestMovie as UserVotes', array('local' => 'user_id', 'foreign' => 'movie_id', 'refClass' => 'TestMovieUserVote')); } }