Doctrine many-to-many relations with extra field

Darkcoder

New Member
I want to join 3 table, Szamla, Termek and Vasarlo.This is my schema:\[code\]options: collate: utf8_unicode_ci charset: utf8Szamla: actAs: [Timestampable] columns: datum: type: timestamp notnull: true total: type: float notnull: true fizetesi_datum: type: date fizetesi_ora: type: time teljesites: type: timestamp user_id: type: int(10) notnull: true afa: type: boolean notnull: true default: 0 relations: SzamlaTermekek: class: Termek local: szamla_id foreign: termek_id refClass: SzamlaTermekVasarlo: columns: nev: type: string(255) notnull: true varos: type: string(200) notnull: true utca: type: string(200) notnull: true zip: type: string(10) notnull: true email: type: string(255) notnull: true orszh: type: string(4) notnull: true krzt: type: string(2) notnull: true telszama: type: string(4) notnull: true telszamb: type: string(3) notnull: true relations: Szamlak: class: Szamla type: many local: id foreign: user_id foreignAlias: VasarloTermek: columns: nev: type: string(255) notnull: true leiras: type: string(500) notnull: true ar: type: float notnull: true raktar: type: string(255) notnull: true default: Duna
 
Back
Top