-
4 Mar 2012 11:24 PM #1
Can't use AlternateClassName in associations (ST2-RC2)
Can't use AlternateClassName in associations (ST2-RC2)
Perhaps not really a bug, but a limitation:
In associations I can't use the AlternateClassName, but I have to use the actual ClassName.
Could you perhaps allow AlternateClassNames there as well?Code:associations: { { type: 'hasMany', model: 'MyApp.model.Person' } }
Would save a lot of useless prefixes.
-
5 Mar 2012 9:03 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,651
- Vote Rating
- 14
Thank you for the report.
-
9 Apr 2012 11:01 AM #3Sencha - Sencha Touch Dev Team
- Join Date
- Jul 2009
- Location
- Palo Alto, California
- Posts
- 469
- Vote Rating
- 9
Without the model class being loaded upfront, there's no automatic way to having the mapping between an alternateClassName to the actual class name.
Alternate class name is primarily meant for backwards compatibility, you shouldn't use it for naming convenience. Full class name referencing of all custom classes is always recommended.Sencha Touch Lead Architect
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote