title: Doctrine2 [Semantical Error] Couldn't find constant?
body: <p>I have an error when I am trying to run <code>doctrine:generate:entities</code>: </p>
  
  <blockquote>
    <p>[Doctrine\Common\Annotations\AnnotationException]<br>
      [Semantical Error] Couldn't find constant ?, property Smartnode\TalkBundle\Entity\Post::$postowner.</p>
  </blockquote>
  
  <p>This is my post entity class:</p>
  
  <pre><code>namespace Smartnode\TalkBundle\Entity;
  
  use Doctrine\ORM\Mapping as ORM;
  
  /**
   * Post
   *
   * @ORM\Table()
   * @ORM\Entity(repositoryClass="Smartnode\TalkBundle\Entity\PostRepository")
   */
  class Post
  {
      /**
       * @var integer
       *
       * @ORM\Column(name="id", type="integer")
       * @ORM\Id
       * @ORM\GeneratedValue(strategy="AUTO")
       */
      private $id;
  
      /**
       * @var integer
       *
       * @ORM\ManyToOne(targetEntity=“Smartnode\userBundle\Entity\User“)
       * @JoinColumn(name="postowner_id", referencedColumnName="id")
       */
      protected $postowner;
  
      /**
       * @var integer
       *
       * @ORM\ManyTonOne(targetEntity=“Smartnode\TalkBundle\Entity\Chan“)
       */
      private $postchan;
  
      /**
       * @var \DateTime
       *
       * @ORM\Column(name="creationdate", type="datetime")
       */
      private $creationdate;
  </code></pre>
  
  <p>And this is my User entity class:</p>
  
  <pre><code>namespace Smartnode\userBundle\Entity;
  
  use FOS\UserBundle\Model\User as BaseUser;
  use Doctrine\ORM\Mapping as ORM;
  
  
  
  /**
   * @ORM\Entity(repositoryClass="Smartnode\userBundle\Entity\UserRepository")
   * @ORM\Table(name="fos_user")
   */
  class User extends BaseUser
  {
      /**
       * @var integer
       *
       * @ORM\Column(name="id", type="integer")
       * @ORM\Id
       * @ORM\GeneratedValue(strategy="AUTO")
       */
      protected $id;
  </code></pre>