Listing 31.4. Właściwość $profil i adnotacja definiująca powiązanie tabel user oraz profil relacją 1:1
//fragment pliku Entity\User.php

/**
 *
 * @ORM\OneToOne(targetEntity="Profil")
 */
 private $profil;