使用Doctrine 2 ORM找不到目标实体

In a ZF2 project, I have a "product" entity with this property definition :

/**
 * @ORM\OneToMany(targetEntity="Admin\Entity\Stock\Stock", mappedBy="product", cascade={"persist", "merge", "remove"})
 **/
protected $stocks;

And a Stock entity with this property :

/**
 *
 * @ORM\ManyToOne(targetEntity="Admin\Entity\Product\Product", inversedBy="stocks", cascade={"persist", "merge"})
 */
protected $product;

When I call ./vendor/doctrine/doctrine-module/bin/doctrine-module orm:schema-tool:create I have this error :

[Doctrine\ORM\Mapping\MappingException]                                                                     
The target-entity Admin\Entity\Product\Stock cannot be found in 'Admin\Entity\Product\Product#stocks'.

Before, the stock entity was in the Admin\Entity\Product namespace but I moved it and changed the namespace definition.

Don't understand... Any help would be munch appreciate

I found the solution ...

On the production server, doctrine is configured with memcache ...

'driver' =>
        [
            'sympass_annotation_driver'    =>
                [
                    'cache' => 'memcached',
                ],
            'accounting_annotation_driver' =>
                [
                    'cache' => 'memcached',
                ],
            'admin_administrative_annotation_driver' =>
                [
                    'cache' => 'memcached',
                ],
        ],

To flush the cache :

telnet localhost 11211

and type flush_all

Hope it will help someone