title: extjs 4 me.model undfined error when creating store
body: <p>I get an error when attempting to create this, very simple, store. I'd like to know what's causing it and how to fix it. Any help appreciated:</p>
  
  <p>me.model is undefined</p>
  
  <pre><code>var sortAvailable = Ext.create('Ext.data.Store', {
    model: 'model_Im_Using',
    storeId:'sortAvailable'
  
  });
  </code></pre>
  
  <p>Below is the code for the model, although I don't think it is a part of the problem</p>
  
  <pre><code>Ext.define('APPNAME.model.model_Im_Using', {
    extend: 'Ext.data.Model',
    modelID: 'BrField',
  
    fields:[
      {name:'displayName', type:'string'},
      {name:'databaseName', type:'string'}
    ]
  
  });
  </code></pre>
  
  <p>The model is defined in its own file under model/model_Im_using.js I have used this model with some treestores in the same file</p>
  
  <p>I'm sure I'm missing something obvious. The store is intended to just has model instances put into it/ taken from it locally. There is no communication with the server side.</p>
  
  <p>Edit: The line the error is on is:</p>
  
  <p>me.setProxy(me.proxy || me.model.getProxy());</p>