title: Need help with Doctrine 2 Relations (inversedBy)
body: <pre><code>class Affiliate
  {
      /**
       * @var integer $id
       *
       * @Column(name="id", type="integer", length=4)
       * @Id
       * @GeneratedValue(strategy="IDENTITY")
       */
      private $id;
  
      /**
       * @var Entities\AdminUser $admin_user
       *
       * @OneToOne(targetEntity="AdminUser", inversedBy="affiliate")
       */
      private $admin_user;    
  }
  
  
  class AdminUser
  {
  
      /**
      * @var integer $id
      *
      * @Column(name="id", type="integer", length=4)
      * @Id
      * @GeneratedValue(strategy="IDENTITY")
      */
      private $id;
  
     /**
     * @var Entities\Affiliate $affiliate
     *
     * @OneToOne(targetEntity="Affiliate", mappedBy="admin_user", cascade={"persist", "remove"}, fetch="EAGER")
     */
     private $affiliate;
  }
  
  
  
  $admin_user4 = new Entities\AdminUser();
  
  $affiliate = new Entities\Affiliate();
  $admin_user4-&gt;setAffiliate($affiliate);
  
  $this-&gt;em-&gt;persist($admin_user4);
  </code></pre>
  
  <p>...</p>
  
  <pre><code>mysql&gt; select * from affiliate;
  +----+---------------+
  | id | admin_user_id |
  +----+---------------+
  |  1 |          NULL |
  +----+---------------+
  1 row in set (0.00 sec)
  </code></pre>
  
  <p>WHY IS THIS NULL??????</p>