{"action":"opened","issue":{"url":"https://api.github.com/repos/rtconner/laravel-tagging/issues/39","labels_url":"https://api.github.com/repos/rtconner/laravel-tagging/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/rtconner/laravel-tagging/issues/39/comments","events_url":"https://api.github.com/repos/rtconner/laravel-tagging/issues/39/events","html_url":"https://github.com/rtconner/laravel-tagging/issues/39","id":70031541,"number":39,"title":"existingTags() not works","user":{"login":"fengys","id":4875445,"avatar_url":"https://avatars.githubusercontent.com/u/4875445?v=3","gravatar_id":"","url":"https://api.github.com/users/fengys","html_url":"https://github.com/fengys","followers_url":"https://api.github.com/users/fengys/followers","following_url":"https://api.github.com/users/fengys/following{/other_user}","gists_url":"https://api.github.com/users/fengys/gists{/gist_id}","starred_url":"https://api.github.com/users/fengys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengys/subscriptions","organizations_url":"https://api.github.com/users/fengys/orgs","repos_url":"https://api.github.com/users/fengys/repos","events_url":"https://api.github.com/users/fengys/events{/privacy}","received_events_url":"https://api.github.com/users/fengys/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-22T05:49:55Z","updated_at":"2015-04-22T05:49:55Z","closed_at":null,"body":"```php\r\n\tpublic static function existingTags() {\r\n\t\treturn Tagged::distinct()\r\n\t\t\t->join('tagging_tags', 'tag_slug', '=', 'tagging_tags.slug')\r\n\t\t\t->where('taggable_type', '=', get_called_class())\r\n\t\t\t->orderBy('tag_slug', 'ASC')\r\n\t\t\t->get(array('tag_slug as slug', 'tag_name as name', 'tagging_tags.count as count'));\r\n\t}\r\n```\r\n\r\nI'm sure  \r\n`get_called_class() = '\\App\\Models\\Article'`\r\n\r\nso can not found any record in database \r\n`'taggable_type'='Article'`\r\n\r\n\r\n"}}