![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 999 Pomógł: 30 Dołączył: 14.01.2007 Skąd: wiesz ? Ostrzeżenie: (0%) ![]() ![]() |
Witam,
Korzystając z opisu w manualu http://www.doctrine-project.org/projects/o...ps:many-to-many, stworzyłem schemat podobny do tego poniżej. W moim jednak nie będzie działało automatyczne wykrywanie pól relacji i muszę je zdefiniować ręcznie. Jak to zrobić dla klasy Group? Cytat ---
User: columns: id: type: integer(4) autoincrement: true primary: true username: type: string(255) password: type: string(255) attributes: export: all validate: true Group: tableName: group_table columns: id: type: integer(4) autoincrement: true primary: true name: type: string(255) relations: Users: foreignAlias: Groups class: User refClass: GroupUser GroupUser: columns: group_id: type: integer(4) primary: true user_id: type: integer(4) primary: true relations: Group: foreignAlias: GroupUsers User: foreignAlias: GroupUsers |
|
|
![]() ![]() |
![]() |
Aktualny czas: 17.09.2025 - 20:40 |