{"action":"opened","issue":{"url":"https://api.github.com/repos/FabienPennequin/DoctrineExtensions-Taggable/issues/30","labels_url":"https://api.github.com/repos/FabienPennequin/DoctrineExtensions-Taggable/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/FabienPennequin/DoctrineExtensions-Taggable/issues/30/comments","events_url":"https://api.github.com/repos/FabienPennequin/DoctrineExtensions-Taggable/issues/30/events","html_url":"https://github.com/FabienPennequin/DoctrineExtensions-Taggable/issues/30","id":101934443,"number":30,"title":"Method getResourceIdsForTag of my entity Tag, not working","user":{"login":"AntonioMalatesta","id":11273091,"avatar_url":"https://avatars.githubusercontent.com/u/11273091?v=3","gravatar_id":"","url":"https://api.github.com/users/AntonioMalatesta","html_url":"https://github.com/AntonioMalatesta","followers_url":"https://api.github.com/users/AntonioMalatesta/followers","following_url":"https://api.github.com/users/AntonioMalatesta/following{/other_user}","gists_url":"https://api.github.com/users/AntonioMalatesta/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonioMalatesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonioMalatesta/subscriptions","organizations_url":"https://api.github.com/users/AntonioMalatesta/orgs","repos_url":"https://api.github.com/users/AntonioMalatesta/repos","events_url":"https://api.github.com/users/AntonioMalatesta/events{/privacy}","received_events_url":"https://api.github.com/users/AntonioMalatesta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-19T16:17:03Z","updated_at":"2015-08-19T16:17:03Z","closed_at":null,"body":"When i get repository for class Tag in controller: \r\n    ''''php\r\n         $tagRepo = $this->getDoctrine()->getManager()->getRepository(mybundle:Tag);\r\n    ''''\r\nand then call the method \"getResourceIdsForTag\" : \r\n    '''php\r\n        $tagRepo->getResourceIdsForTag('my_resource', 'my_tag);\r\n    '''\r\nReturn the error ###ndefined method 'getResourceIdsForTag'. The method name must start with either findBy or findOneBy!###\r\n\r\nThe problem is that my entity (It is extending the BaseTag entity, as it is written in the documentation) not view the entityRepository located in the doctrine-extension-taggable. \r\n\r\nActually I solved my problem by creating my EntityRepository copying the code from TagRepository located inside doctrine-extension-taggable.\r\n\r\nMaybe I wrong something ? \r\nThanks a lot"}}