simde-utc / portail-old

Portail des associations de l'UTC
Other
9 stars 23 forks source link

fix the redirection problem after deleting an event #156

Closed yangqiao closed 10 years ago

yangqiao commented 10 years ago

fix the redirection problem after deleting an event, and some related gallery issues.

brcorentin commented 10 years ago

Ca m'a l'air pas mal y a juste un petit truc. Je teste ça dès que je peux et je merge.

yangqiao commented 10 years ago

I've deleted the comment. BTW the issue #150 and #116 are the same.

brcorentin commented 10 years ago

I have a problem with the migration of the database (the migration file don't work on my computer).

apuyou commented 10 years ago

@yangqiao You can't just edit an old migration file, you have to create a new one with a newer timestamp in the name and with your updates in it.

yangqiao commented 10 years ago

what's the problem? You cantry this:

  1. backup the database delete them all
  2. use $ php symfony doctrine:build --all-classes to rebuild all tables
  3. Import your database.

Or you can change the relationships in database with phpmyadmin. tables "assos_event" "event_photo"'s foreign keys should be on a relationship "onDelete: CASCADE"

If it doesn't work , try to tell me more specifically where and what's the problem.


Qiao YANG

Université de Technologie de Compiègne

在 2014年3月20日,18:53,Corentin notifications@github.com 写道:

I have a problem with the migration of the database (the migration file don't work).

— Reply to this email directly or view it on GitHub.

yangqiao commented 10 years ago

Ok.. I see... Thanks!


Qiao YANG

Université de Technologie de Compiègne

在 2014年3月20日,19:00,Arthur Puyou notifications@github.com 写道:

@yangqiao You can't just edit an old migration file, you have to create a new one with a newer timestamp in the name and with your updates in it.

— Reply to this email directly or view it on GitHub.

brcorentin commented 10 years ago

The most important problem is that on the production server we can't drop the database.

yangqiao commented 10 years ago

Yes you are right . I should have thought about that :) . Thanks for reminding , I'll fix it tonight.

yangqiao commented 10 years ago

I've now added a migration file. If there is still any mistakes, tell me . I'm new to symfony... now I'm getting to understand a bit more about doctrine migration , thanks guys! @apuyou @Zicouto

brcorentin commented 10 years ago

Excuse moi de te répondre aussi tard @yangqiao . Je comprends pas trop l'utilité des exif dans le showSuccess. Quelle est l'utilité de récupérer un tableau que l'on n'affiche pas?

yangqiao commented 10 years ago

En fait, il y avait des codes qui voulait recupérer et afficher des infos exif de photo. Mais ils fonctionnent pas parce que ce qu'on a recuperer c'est un tableau(on peut pas afficher un tableau directement avec echo... On aura "array") et la fonction peut d'etre appliquer que sur des images "jpeg et tiff" qui contient des info exif. Donc j'ai ajouter quelques lignes pour qu'il soit fonctionne. Si on es d'accord qu'il sert à rien, on peut l'enlever( J'ai fait juste une correction, c'est des ancien codes qui voulait l'afficher).

brcorentin commented 10 years ago

Après avoir discuter avec @apuyou on a décidé qu'il valait mieux l'enlever. Cela va consommer pas mal de ressources pour rien.