It is not the correct way of doing form inheritance. You need to define a getParent method