title: Symfony Entity one-to-one relation
body: <p>Can you look at the relationship between entities, unfortunately all the time is not working properly. I will be grateful for the help. This is a relation 1 to 1.</p>
  
  <p>User Entity</p>
  
  <pre><code> /**
      *
      * @ORM\Column(type="string")
      *
      * @ORM\OneToOne(targetEntity="Structure", mappedBy="user")
      */
      protected $structure;
  </code></pre>
  
  <p>Structure Entity</p>
  
  <pre><code>/**
  * @var string
  *
  * @ORM\Column(name="user", type="string", length=50, unique=false)
  * @ORM\OneToOne(targetEntity="User", inversedBy="structure")
  * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
  */
  private $user;
  </code></pre>