diff --git a/docs/creating_classes_by_hand.md b/docs/creating_classes_by_hand.md index ba9a896..2eb2940 100644 --- a/docs/creating_classes_by_hand.md +++ b/docs/creating_classes_by_hand.md @@ -33,7 +33,7 @@ doctrine: mappings: FOSUserBundle: type: xml - dir: '%kernel.root_dir%/../vendor/friendsofsymfony/user-bundle/Resources/config/doctrine/model' + dir: '%kernel.root_dir%/../vendor/friendsofsymfony/user-bundle/Resources/config/doctrine-mapping' prefix: FOS\UserBundle\Model is_bundle: false ``` diff --git a/src/DependencyInjection/Compiler/RegisterFosUserMappingsPass.php b/src/DependencyInjection/Compiler/RegisterFosUserMappingsPass.php index 63c35c2..31df03a 100644 --- a/src/DependencyInjection/Compiler/RegisterFosUserMappingsPass.php +++ b/src/DependencyInjection/Compiler/RegisterFosUserMappingsPass.php @@ -86,7 +86,7 @@ private static function getMappings() if (null === $mappings) { $r = new \ReflectionClass('FOS\UserBundle\FOSUserBundle'); $mappings = array( - realpath(dirname($r->getFilename()).'/Resources/config/doctrine/model') => 'FOS\UserBundle\Model', + realpath(dirname($r->getFilename()).'/Resources/config/doctrine-mapping') => 'FOS\UserBundle\Model', ); }