I'm generating entities using doctrine 2 from the command line but my application requires a namespace to be set, how can I make sure that the created entities will have namespace Entities; at the top?
Create next file structure:
application/
/models/
/Entities/
User.php
and User.php model has next namespace:
namespace Entities;
class User { ... }
$user = new \Entities\User();
dont forget to set
$driverImpl = $config->newDefaultAnnotationDriver('/path/to/app/application/models/Entities');
$config->setMetadataDriverImpl($driverImpl);