title: Symfony Semantical Error
body: <p>I am getting this error: (before everything was ok, but after some changes it started to appear)</p>
  <blockquote>
  <p>[Semantical Error] The annotation &quot;@Expose&quot; in property VswSystem\CmsBundle\Entity\Slider::$name was never imported.</p>
  <p>Did you maybe forget to add a &quot;use&quot; statement for this annotation?</p>
  </blockquote>
  <p>Code is here:</p>
  <pre><code>&lt;?php
  
  namespace VswSystem\CmsBundle\Entity;
  
  use Doctrine\ORM\Mapping as ORM;
  use VswSystem\CmsBundle\Entity\SliderImage;
  use Doctrine\Common\Collections\ArrayCollection;
  use VswSystem\CmsBundle\Entity\Traits\IdentificationalEntity;
  use VswSystem\CmsBundle\Entity\Traits\NamedEntity;
  use JMS\Serializer\Annotation\Expose;
   
  /**
   * Slider
   *
   * @ORM\Table()
   * @ORM\Entity(repositoryClass=&quot;VswSystem\CmsBundle\Entity\Repository\SliderRepository&quot;)
   * @ORM\HasLifecycleCallbacks()
   */
  class Slider
  {
      use IdentificationalEntity;
      use NamedEntity;
  
      /**
       * @var SliderImage
       * @ORM\ManyToMany(targetEntity=&quot;SliderImage&quot;, cascade={&quot;persist&quot;}, orphanRemoval=true)
       * 
       */
      protected  $slides;
  
      public function __construct()
      {
          $this-&gt;slides = new ArrayCollection();
      }
  
      
      /**
       * Get all slides
       * @return ArrayCollection
       */
      public function getSlides()
      {
          return $this-&gt;slides;
      }
  
  }
  </code></pre>
  <p>NamedEntity file code:</p>
  <pre><code>&lt;?php
  namespace VswSystem\CmsBundle\Entity\Traits;
  
  use Symfony\Component\Validator\Constraints as Assert;
  
  
  /**
   * Class NamedEntity
   * @package VswSystem\CmsBundle\Entity\Traits
   */
  trait NamedEntity
  {
      /**
       * @var string
       *
       * @ORM\Column(name=&quot;name&quot;, type=&quot;string&quot;, length=255, nullable=true)
       * @Assert\NotBlank
       * @Assert\Length(min=&quot;3&quot;)
       * @Expose
       */
      protected $name;
  
  
      /**
       * Set name
       *
       * @param string $name
       * @return File
       */
      public function setName($name)
      {
          $this-&gt;name = $name;
  
          return $this;
      }
  
      /**
       * Get name
       *
       * @return string
       */
      public function getName()
      {
          return $this-&gt;name;
      }
  }
  </code></pre>
  <p>Cant figure it out what is wrong...</p>