In Doctrine all record relations are being set with hasMany, hasOne, ownsMany and ownsOne methods. Doctrine supports almost any kind of database relation
from simple one-to-one foreign key relations to join table self-referencing relations.