title: Symfony 3.3 Schema Validation Error
body: <p>I have two entities as follows:</p>
  
  <pre><code>&lt;?php
  // src/coreBundle/Entity/model.php
  namespace coreBundle\Entity;
  use Doctrine\ORM\Mapping as ORM;
  use coreBundle\Entity\brand;
  
  /**
  *@ORM\Entity
  *@ORM\Table(name="model")
  */
  class model
  {
      /**
      * @ORM\ManyToOne(targetEntity="coreBundle\Entity\brand", inversedBy="models")
      * @ORM\JoinColumn(name="brand_id", referencedColumnName="id")
      */
      private $brands;
  
  
      /**
  * @ORM\Column(type="integer")
  * @ORM\Id
  * @ORM\GeneratedValue(strategy="AUTO")
  */
      public $id;
  
  /**
      *@ORM\Column(type="integer")
      */
      public $brand_id;
  
  
      /**
      *@ORM\Column(type="string", length=100)
      */
      private $name;
  
      /**
      *@ORM\Column(type="string", length=100)
      */
      private $image_url;
  
      /**
      *@ORM\Column(type="string", length=200)
      */
      private $comment;
  
      /**
       * Get id
       *
       * @return integer
       */
      public function getId()
      {
          return $this-&gt;id;
      }
  
      /**
       * Set brandId
       *
       * @param integer $brandId
       *
       * @return model
       */
      public function setBrandId($brandId)
      {
          $this-&gt;brand_id = $brandId;
  
          return $this;
      }
  
      /**
       * Get brandId
       *
       * @return integer
       */
      public function getBrandId()
      {
          return $this-&gt;brand_id;
      }
  
      /**
       * Set name
       *
       * @param string $name
       *
       * @return model
       */
      public function setName($name)
      {
          $this-&gt;name = $name;
  
          return $this;
      }
  
      /**
       * Get name
       *
       * @return string
       */
      public function getName()
      {
          return $this-&gt;name;
      }
  
      /**
       * Set imageUrl
       *
       * @param string $imageUrl
       *
       * @return model
       */
      public function setImageUrl($imageUrl)
      {
          $this-&gt;image_url = $imageUrl;
  
          return $this;
      }
  
      /**
       * Get imageUrl
       *
       * @return string
       */
      public function getImageUrl()
      {
          return $this-&gt;image_url;
      }
  
      /**
       * Set comment
       *
       * @param string $comment
       *
       * @return model
       */
      public function setComment($comment)
      {
          $this-&gt;comment = $comment;
  
          return $this;
      }
  
      /**
       * Get comment
       *
       * @return string
       */
      public function getComment()
      {
          return $this-&gt;comment;
      }
  
  
  
      /**
       * Set brands
       *
       * @param \coreBundle\Entity\brand $brands
       *
       * @return model
       */
      public function setBrands(\coreBundle\Entity\brand $brands = null)
      {
          $this-&gt;brands = $brands;
  
          return $this;
      }
  
      /**
       * Get brands
       *
       * @return \coreBundle\Entity\brand
       */
      public function getBrands()
      {
          return $this-&gt;brands;
      }
  }
  </code></pre>
  
  <p>And Second one is as follows:</p>
  
  <pre><code>&lt;?php
  // src/coreBundle/Entity/brand.php
  namespace coreBundle\Entity;
  use Doctrine\ORM\Mapping as ORM;
  use coreBundle\Entity\model;
  use Doctrine\Common\Collections\ArrayCollection;
  
  /**
  *@ORM\Entity
  *@ORM\Table(name="brand")
  */
  class brand
  {
      /**
       * ORM\OneToMany(targetEntity="coreBundle\Entity\model", mappedBy="brands")
       */
      private $models;
      public function __construct()
      {
          $this-&gt;models = new ArrayCollection();
      }
  
      /**
  * @ORM\Column(type="integer")
  * @ORM\Id
  * @ORM\GeneratedValue(strategy="AUTO")
  */
  public $id;
  
      /**
      *@ORM\Column(type="string", length=100)
      */
      private $name;
  
  
  
      /**
       * Get id
       *
       * @return integer
       */
      public function getId()
      {
          return $this-&gt;id;
      }
  
      /**
       * Set name
       *
       * @param string $name
       *
       * @return brand
       */
      public function setName($name)
      {
          $this-&gt;name = $name;
  
          return $this;
      }
  
      /**
       * Get name
       *
       * @return string
       */
      public function getName()
      {
          return $this-&gt;name;
      }
  }
  </code></pre>
  
  <p>"model" has a ManyToOne relationship with "brand"</p>
  
  <p>I am having issues of schema validation, </p>
  
  <blockquote>
    <p>*The association coreBundle\Entity\model#brands refers to the inverse side field coreBundle\Entity\brand#models which does not exist </p>
  </blockquote>
  
  <p>Can you tell what am I doing wrong, Thanks in advance.</p>