Ext JS 4 provides a straight forward way for defining relationships between two or more Data Models. This book, for example has two authors, which can be expressed as a one-to-many relationship between a book and its authors with Model associations. The framework has support for three common relationships:
This recipe will provide a basic demonstration of linking two Models together and adding associated data to the second, associated, Model from an instance of the first Model. The last part of the recipe will explore loading nested data into these associated Models.