massiveart / MassiveSearchBundle

MIT License
67 stars 24 forks source link

Add app config/massive-search dir as metadataPath #138

Closed alexander-schranz closed 4 years ago

alexander-schranz commented 4 years ago

fixes #137

The logic is the same as for the getBundleMappingPaths

cedricvazille commented 4 years ago

It was almost that : $metadataPaths["App\Entity"] = $container->getParameter('kernel.project_dir') . '/config/massive-search';

This resolve my problem and now my Entity is well indexed, thank you very much 👍

cedricvazille commented 4 years ago

Be carefull, I change your $metadataPaths[] by $metadataPaths["App\Entity"] This produces a : 0 => "/Users/me/Documents/WebProjets/myproject/config/massive-search" instead of : "App\Entity" => "/Users/me/Documents/WebProjets/myproject/config/massive-search"

alexander-schranz commented 4 years ago

@cedricvazille you are correct did update the logic.

cedricvazille commented 4 years ago

Your last version works great for me ! Thank you again :)