Added parent attribute to model.