I have two entites (User and UserPreferences) that I want to map OneToOne unidirectional.
The code looks something like this:
/** * @ORM\\Table(\"us
Bug was with
* @ORM\Column(name="user_preferences_id", type="integer")
Your code should contain
* @ORM\JoinColumn(name="user_preferences_id", referencedColumnName="id")
instead of this.