Adam
W.
senior php
developer, Symfony
Temat: rozszerzenie metody save modelu
witam:)mam 3 tabele powiązane ze sobą
sf_guard_user, profil oraz profil_liczniki
dodaję usera
symfony guard:generate-user adam haslo
chciałbym, żeby automatycznie dodał się nowy wiersz w tabeli profil oraz profil_liczniki.
jak to mógłbym zrobić?
sprawa chyba komplikuje się przez trochę dziwną strukturę tabel
sf_guard_user: id, username ...
profil: idprofil, user_id
profil_liczniki: id, idprofil
w configu sfguarduser podałem tabelę profil
sf_guard_plugin:
profile_class: Profil
profile_field_name: user_id