title: My relation doesn't reflect in my database. symfony Doctrine
body: <p>I'm trying to add a table and make a relationship.
  But my code does not work.</p>
  <pre><code>    /**
       * @var ArrayCollection
       *
       * @ORM\OneToMany(targetEntity=&quot;Ecb\UserBundle\Entity\ColoproctologyInfo&quot;, mappedBy=&quot;userId&quot;, cascade={&quot;persist&quot;,&quot;remove&quot;})
       */
      private $coloproctologyInfo;
  </code></pre>
  <pre><code> * @ORM\Entity
   * @ORM\Table(name=&quot;ColoproctologyInfo&quot;)
   */
  class ColoproctologyInfo extends AbstractBaseEntity {
  
      /**
       * @var int
       *
       * @ORM\Column(name=&quot;user_id&quot;, type=&quot;integer&quot;, nullable=false)
       * @ORM\ManyToOne(targetEntity=&quot;Ecb\UserBundle\Entity\User&quot;, inversedBy=&quot;coloproctologyInfo&quot;, cascade={&quot;persist&quot;})
       */
      private $userId;
  </code></pre>
  <p>And I executed this command.</p>
  <pre><code>php bin/console doctrine:schema:update --dump-sql
  php bin/console doctrine:schema:update --dump-sql --force
  </code></pre>
  <p>But my table does not have a foreign key.
  What is the reason..?</p>