Using generic version of calling a class name

Instead of using `$this->data['User']` changed to a generic version : `$this->data[$this->alias]`
Merge pull request #1517 from karmicdice/patch-2

Using generic version of calling a class name Ref: #4043