Witam, Tak na pierwszy rzut oka Twój design jest kiepski i pewnie dlatego nie działa.
Jak powinien wyglądać w miarę dobry design? Profil -> relacja do sfGuardUser Note -> relacja do sfGuardUser Comment -> relacja do sfGuardUser i do Note Robisz jakieś dziwne niepotrzebne relacje w profilu. Przynajmniej takie jest moje zdanie w tym temacie - może chciałeś osiągnąć coś innego a ja źle na to patrzę :) Pozdrawiam, Michał W dniu 1 kwietnia 2010 18:28 użytkownik "Kacper Sieradziński [Code-art.eu]" <[email protected]> napisał: > Hi, here is link to my schema.yml: > http://pastebin.com/Y7xAanD5 > > but I still get the errors like: > > SQLSTATE[HY000]: General error: 1005 Could not create table > 'rucola_blip.#sql-158e_26a72' (error number: 150). Failing Query: "ALTER > TABLE note ADD CONSTRAINT note_user_id_profile_id FOREIGN KEY (user_id) > REFERENCES profile(id)". Failing Query: ALTER TABLE note ADD CONSTRAINT > note_user_id_profile_id FOREIGN KEY (user_id) REFERENCES profile(id) > > Could you help me? > > Kacper Sieradziński > > ------ > Code Art eu - Tworzenie stron internetowych > http://www.code-art.eu > 508 106 046 > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using "remove me" as the subject.
