add several methods:
1. getModel
2. attributeNames
3. relations
4. hasAttribute