I\'m working on a CodeIgniter project in which I\'m using Doctrine2 and the Symfony2 Validator component.
All my Doctrine2 entities use Doctrine\\ORM\\Mapping
Add use statements for
every annotation you have used in your entities. for example:
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Table;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\GeneratedValue;
But you may not interesting to use this method. You can write all use statements to one file and just include it in your entities.