I was using the function get_class_vars(__CLASS__) to obtain the list of fields I needed to fetch from the data source but this was fetching fields from the class that were not part of the entity in relation to the data source.   Instead, I need to manually specify what fields I want to fetch from the data source.
Added .gitignore file