Added the property parentModel to nested models

In order to easily access the parentModel in nested models.