title: CakePHP baked project, moved to plugin, relations not working?
body: <p>I baked a project in CakePHP, which was working great.  I then moved it to a plugin called "MobileFort."  I was able to get everything functioning from a test app, except my model relations.  I added "MobileFort." before all of the class names, but still no joy.</p>
  
  <p>Example index (from the "User" controller... just default bake):</p>
  
  <pre><code>    public function index() {
      $this-&gt;User-&gt;recursive = 0;
      $this-&gt;set('users', $this-&gt;Paginator-&gt;paginate());
  }
  </code></pre>
  
  <p>The relevant model relations:</p>
  
  <pre><code>    public $belongsTo = array(
      'SystemNotice' =&gt; array(
          'className' =&gt; 'MobileFort.SystemNotice',
          'foreignKey' =&gt; 'system_notice_id',
          'conditions' =&gt; '',
          'fields' =&gt; '',
          'order' =&gt; ''
      ),
      'TicketMessage' =&gt; array(
          'className' =&gt; 'MobileFort.TicketMessage',
          'foreignKey' =&gt; 'ticket_message_id',
          'conditions' =&gt; '',
          'fields' =&gt; '',
          'order' =&gt; ''
      )
  );
  
  public $hasMany = array(
      'SystemNotice' =&gt; array(
          'className' =&gt; 'MobileFort.SystemNotice',
          'foreignKey' =&gt; 'user_id',
          'dependent' =&gt; false,
          'conditions' =&gt; '',
          'fields' =&gt; '',
          'order' =&gt; '',
          'limit' =&gt; '',
          'offset' =&gt; '',
          'exclusive' =&gt; '',
          'finderQuery' =&gt; '',
          'counterQuery' =&gt; ''
      ),
      'TicketMessageSent' =&gt; array(
          'className' =&gt; 'MobileFort.TicketMessage',
          'foreignKey' =&gt; 'to_user_id',
          'dependent' =&gt; false,
          'conditions' =&gt; '',
          'fields' =&gt; '',
          'order' =&gt; '',
          'limit' =&gt; '',
          'offset' =&gt; '',
          'exclusive' =&gt; '',
          'finderQuery' =&gt; '',
          'counterQuery' =&gt; ''
      ),
      'TicketMessageReceived' =&gt; array(
          'className' =&gt; 'MobileFort.TicketMessage',
          'foreignKey' =&gt; 'from_user_id',
          'dependent' =&gt; false,
          'conditions' =&gt; '',
          'fields' =&gt; '',
          'order' =&gt; '',
          'limit' =&gt; '',
          'offset' =&gt; '',
          'exclusive' =&gt; '',
          'finderQuery' =&gt; '',
          'counterQuery' =&gt; ''
      ),
  );
  </code></pre>
  
  <p>Aand the relevant bit of the view:</p>
  
  <pre><code>&lt;?php foreach ($users as $user): ?&gt;
  &lt;tr&gt;
      &lt;td&gt;&lt;?php echo h($user['User']['id']); ?&gt;&amp;nbsp;&lt;/td&gt;
      &lt;td&gt;&lt;?php echo h($user['User']['username']); ?&gt;&amp;nbsp;&lt;/td&gt;
      &lt;td&gt;
          &lt;?php echo $this-&gt;Html-&gt;link($user['SystemNotice']['title'], array('controller' =&gt; 'system_notices', 'action' =&gt; 'view', $user['SystemNotice']['id'])); ?&gt;
      &lt;/td&gt;
      &lt;td&gt;
          &lt;?php echo $this-&gt;Html-&gt;link($user['TicketMessage']['subject'], array('controller' =&gt; 'ticket_messages', 'action' =&gt; 'view', $user['TicketMessage']['id'])); ?&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  
  
  <p>What on earth am I missing here?</p>