I am using Symfony2 and when i try to generate the schema ($ php app/console doctrine:generate:schema) i got an error..
[DoctrineORMMappingMappingException]
No mapping file found named 'xxx.UserBundle.Entity.User.php' for class 'xxxUserBundleEntityUser'.
I only have 2 Bundles in the proyect:
I connect the FileBundle with the UserBundle with this code:
/**
* @ORMManyToOne(targetEntity="xxxUserBundleEntityUser")
**/
protected $user;
The headers of the files are something like this:
namespace xxUserBundleEntity;
use DoctrineORMMapping as ORM;
/**
* @ORMEntity
**/
class User
{ ###...###}
FileBundle is very similar..
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…