on execution php app/console doctrine:generate:entities etBundle:UsersIm gets this error message:
[Doctrine\Common\Annotations\AnnotationException]
[Semantical Error] The annotation "@Doctrine\ORM\Mapping" in class Ampisoft\Bundle\etrackBundle\Entity\Users does not exist, or could not be auto-loaded.
My entity class is as follows:
namespace Ampisoft\Bundle\etrackBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
class Users
{
protected $id;
protected $username;
protected $password;
private $isActive;
protected $email;
protected $lastLogged;
}
Ive looked around SO and found solutions that corresponded to a similar problem, but related to properties, and also related to zend, but nothing related to the actual class declaration in symfony2.
Ive installed and updated all vendor packages using composer.
Can anyone point me in the right direction?
I am new to symfony. Many thanks
source
share