title: Symfony2 throws doctrine exception "check the manual that corresponds to your MySQL server version for the right syntax to use near 'group' "
body: <p>I'm working on a symfony project, I tried to add a data to database using entity but I got an Doctrine sql error?!!!!
  so any help is appritiated in advanced</p>
  
  <p>I made an entity myselft which is :</p>
  
  <pre><code>/**
   * @ORM\Table(name="u001_user_group")
   * @ORM\Entity
   */
   class UserGroup 
   {       
      /**
       * @var integer
       *
       * @ORM\Column(name="group", type="integer", length=20, nullable=false)
       */
      private $group;
  
      public function setGroup($group)
      {
          $this-&gt;group = $group;
  
          return $this;
      }
  
      public function getGroup()
      {
          return $this-&gt;group;
      }
  }       
  </code></pre>
  
  <p>And when I try to add something like this:</p>
  
  <pre><code>$UserGroup= new UserGroup();
              $UserGroup-&gt;setUser($registerAction-&gt;getId());
              $UserGroup-&gt;setGroup(4);
              $em-&gt;persist($UserGroup);
              $em-&gt;flush();
  </code></pre>
  
  <p>it give me this error:</p>
  
  <blockquote>
    <p>An exception occurred while executing 'INSERT INTO u001_user_group
    (user, group) VALUES (?, ?)' with params [20, 4]:</p>
    
    <p>SQLSTATE[42000]: Syntax error or access violation: 1064 You have an
    error in your SQL syntax; check the manual that corresponds to your
    MySQL server version for the right syntax to use near 'group) VALUES
    (20, 4)' at line 1</p>
  </blockquote>