{"action":"closed","issue":{"url":"https://api.github.com/repos/kodeine/laravel-meta/issues/9","labels_url":"https://api.github.com/repos/kodeine/laravel-meta/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/kodeine/laravel-meta/issues/9/comments","events_url":"https://api.github.com/repos/kodeine/laravel-meta/issues/9/events","html_url":"https://github.com/kodeine/laravel-meta/issues/9","id":105686801,"number":9,"title":"Undefined property: App\\Models\\User::$metaData","user":{"login":"Zyles","id":1741593,"avatar_url":"https://avatars.githubusercontent.com/u/1741593?v=3","gravatar_id":"","url":"https://api.github.com/users/Zyles","html_url":"https://github.com/Zyles","followers_url":"https://api.github.com/users/Zyles/followers","following_url":"https://api.github.com/users/Zyles/following{/other_user}","gists_url":"https://api.github.com/users/Zyles/gists{/gist_id}","starred_url":"https://api.github.com/users/Zyles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zyles/subscriptions","organizations_url":"https://api.github.com/users/Zyles/orgs","repos_url":"https://api.github.com/users/Zyles/repos","events_url":"https://api.github.com/users/Zyles/events{/privacy}","received_events_url":"https://api.github.com/users/Zyles/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-09T21:19:42Z","updated_at":"2015-09-09T22:41:54Z","closed_at":"2015-09-09T22:41:53Z","body":"Hi,\r\n\r\nUsing your package for my meta data which works great. However I run into issues when I try to add more traits and stuff to my user model.\r\n\r\nThis is my setup:\r\n\r\n- User model with your Metable added (works as expected)\r\n- A trait called AccountBalance which I added after yours which consists of:\r\n\r\n```\r\ntrait AccountBalance\r\n{\r\n    public function scopeGetAccountBalance($query)\r\n    {\r\n        return $query->orderBy('id', 'DESC')->first()->pluck('balance');\r\n    }\r\n\r\n}\r\n\r\n```\r\n\r\n- My controller which is called from my route:\r\n```\r\npublic function getAccountBalance(Request $request, $id)\r\n    {\r\n        $response = User::getAccountBalance()->find($id);\r\n\r\n        return $response;\r\n    }\r\n```\r\n\r\nThis results in the error\r\n```\r\nUndefined property: App\\Models\\User::$metaData\r\n```\r\n\r\nI can't figure out why.\r\n\r\nThanks.\r\n\r\nP.S. can this be caused by the fact that the account balance is in another SQL table which does not have meta data relationships?"}}