X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/src/data/HasManyAssociation.js diff --git a/src/data/HasManyAssociation.js b/src/data/HasManyAssociation.js index f8b2946e..25fadfdc 100644 --- a/src/data/HasManyAssociation.js +++ b/src/data/HasManyAssociation.js @@ -49,7 +49,7 @@ Ext.define('User', { *

 //first, we load up a User with id of 1
-var user = Ext.ModelManager.create({id: 1, name: 'Ed'}, 'User');
+var user = Ext.create('User', {id: 1, name: 'Ed'});
 
 //the user.products function was created automatically by the association and returns a {@link Ext.data.Store Store}
 //the created store is automatically scoped to the set of Products for the User with id of 1
@@ -105,7 +105,7 @@ var store = new Search({query: 'Sencha Touch'}).tweets();
  * equivalent to this:

*

-var store = new Ext.data.Store({
+var store = Ext.create('Ext.data.Store', {
     model: 'Tweet',
     filters: [
         {