title: PHP ActiveRecord - Could not find the association in model
body: <p>I'm using Codeigniter 2.1.0 along with the <a href="http://getsparks.org/packages/php-activerecord/versions/HEAD/show" rel="nofollow">spark to enable PHP ActiveRecord</a> and I am unable to create a many to many association through a lookup table.
  Whenever I load the Event model it fails with "Could not find the association eventcategories in model Event" which is a ActiveRecord\HasManyThroughAssociationException</p>
  
  <p>In accordance to <a href="http://www.phpactiverecord.org/boards/4/topics/226" rel="nofollow">this topic</a> I've tried updating my source with <a href="https://github.com/kla/php-activerecord/issues/68" rel="nofollow">this patch</a> with no effect.</p>
  
  <p>I also followed <a href="http://www.phpactiverecord.org/boards/4/topics/509" rel="nofollow">this thread</a> and based my association on the solution given there.</p>
  
  <p>I've ended up with the following sql: <a href="http://pastebin.com/ya65VWHC" rel="nofollow">http://pastebin.com/ya65VWHC</a>
  and the following models: <a href="http://pastebin.com/XEDTb6KS" rel="nofollow">http://pastebin.com/XEDTb6KS</a></p>
  
  <p>I'm trying to associate one Event with several categories, for example a football game event could have the categories 'sports', 'family' and 'fun'.</p>
  
  <p>Did I miss something fundamental?</p>