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