In Doctrine all record relations are being set with hasMany, hasOne, ownsMany and ownsOne methods.