OneToOne association does not persist the relational objects correctly
===

I have a User that has a Profile:

    class User
    {
        /**
         * @ORM\OneToOne(targetEntity="Profile", mappedBy="user", cascade={"persist"})
         */
        protected $profile;
    }

And the Profile, that should also have the reference to the User:

    class Profile
    {
        /**
         * @ORM\OneToOne(targetEntity="User", inversedBy="profile")
         * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
         */
        protected $user;
    }

My goal is to have a `profiles` table that will hold the `user_id`foreign key to the `users` table.

The thing is, when I persist a User, the profiles tables receives a record, but the user_id column stays `null`.

Also, I wish I could access the profile `setter` methods at the `user` entity before persisting the objects into the database.

What am I missing? 