Add the .idea folder to .gitignore.
Use "getAttributes" instead of "toArray" to get model data.