// find all article ids matching a particular query
$ids = $tagRepo->getResourceIdsForTag('media', 'cd');
// get the tags and count for all articles
$tags = $tagRepo->getTagsWithCountArray('media');
foreach ($tags as $name => $count) {
echo sprintf('The tag "%s" matches "%s" medias', $name, $count);
} `
When I try , I have always the same error :
The class 'DoctrineExtensions\Taggable\Entity\Tag' was not found in the chain configured namespaces AppBundle\Entity, FPN\TagBundle\Entity
I know that the issue is with the ORM's mapping but I don't know how I can fixed that.
Hello,
I have try like in the document this code to find "medias" with a type of tag :
` $tagRepo = $this->getDoctrine()->getManager()->getRepository('DoctrineExtensions\Taggable\Entity\Tag');
When I try , I have always the same error :
The class 'DoctrineExtensions\Taggable\Entity\Tag' was not found in the chain configured namespaces AppBundle\Entity, FPN\TagBundle\Entity
I know that the issue is with the ORM's mapping but I don't know how I can fixed that.
Thanks