Removed the migration that adds foreign keys to photos, updated the model
Corrected the bug in event form showing a warning becaus of automatic cast from a unknown object to a string (getName)