{"action":"created","issue":{"url":"https://api.github.com/repos/Newton-Labs/plataforma_virtual/issues/36","repository_url":"https://api.github.com/repos/Newton-Labs/plataforma_virtual","labels_url":"https://api.github.com/repos/Newton-Labs/plataforma_virtual/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/Newton-Labs/plataforma_virtual/issues/36/comments","events_url":"https://api.github.com/repos/Newton-Labs/plataforma_virtual/issues/36/events","html_url":"https://github.com/Newton-Labs/plataforma_virtual/issues/36","id":137742090,"number":36,"title":"Enviar correo a los usuarios","user":{"login":"fcpauldiaz","id":4523284,"avatar_url":"https://avatars.githubusercontent.com/u/4523284?v=3","gravatar_id":"","url":"https://api.github.com/users/fcpauldiaz","html_url":"https://github.com/fcpauldiaz","followers_url":"https://api.github.com/users/fcpauldiaz/followers","following_url":"https://api.github.com/users/fcpauldiaz/following{/other_user}","gists_url":"https://api.github.com/users/fcpauldiaz/gists{/gist_id}","starred_url":"https://api.github.com/users/fcpauldiaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fcpauldiaz/subscriptions","organizations_url":"https://api.github.com/users/fcpauldiaz/orgs","repos_url":"https://api.github.com/users/fcpauldiaz/repos","events_url":"https://api.github.com/users/fcpauldiaz/events{/privacy}","received_events_url":"https://api.github.com/users/fcpauldiaz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Newton-Labs/plataforma_virtual/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"fitocs452","id":8285014,"avatar_url":"https://avatars.githubusercontent.com/u/8285014?v=3","gravatar_id":"","url":"https://api.github.com/users/fitocs452","html_url":"https://github.com/fitocs452","followers_url":"https://api.github.com/users/fitocs452/followers","following_url":"https://api.github.com/users/fitocs452/following{/other_user}","gists_url":"https://api.github.com/users/fitocs452/gists{/gist_id}","starred_url":"https://api.github.com/users/fitocs452/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fitocs452/subscriptions","organizations_url":"https://api.github.com/users/fitocs452/orgs","repos_url":"https://api.github.com/users/fitocs452/repos","events_url":"https://api.github.com/users/fitocs452/events{/privacy}","received_events_url":"https://api.github.com/users/fitocs452/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-03-02T01:19:02Z","updated_at":"2016-03-03T07:13:09Z","closed_at":null,"body":"Enviar un correo a todos los usuarios asignados a un curso cada vez que se suba un curso. Tiene que haber una opción que permita ya no mandar los correos .\r\n\r\nIdea sugerida, colocar un nuevo campo en la base de datos para saber si el usuario desea recibir correos cuando se suba un archivo a un curso. Verificar este campo para mandar el correo cada vez que se sube un archivo y poner por defecto que sí se manda el correo."},"comment":{"url":"https://api.github.com/repos/Newton-Labs/plataforma_virtual/issues/comments/191621394","html_url":"https://github.com/Newton-Labs/plataforma_virtual/issues/36#issuecomment-191621394","issue_url":"https://api.github.com/repos/Newton-Labs/plataforma_virtual/issues/36","id":191621394,"user":{"login":"fcpauldiaz","id":4523284,"avatar_url":"https://avatars.githubusercontent.com/u/4523284?v=3","gravatar_id":"","url":"https://api.github.com/users/fcpauldiaz","html_url":"https://github.com/fcpauldiaz","followers_url":"https://api.github.com/users/fcpauldiaz/followers","following_url":"https://api.github.com/users/fcpauldiaz/following{/other_user}","gists_url":"https://api.github.com/users/fcpauldiaz/gists{/gist_id}","starred_url":"https://api.github.com/users/fcpauldiaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fcpauldiaz/subscriptions","organizations_url":"https://api.github.com/users/fcpauldiaz/orgs","repos_url":"https://api.github.com/users/fcpauldiaz/repos","events_url":"https://api.github.com/users/fcpauldiaz/events{/privacy}","received_events_url":"https://api.github.com/users/fcpauldiaz/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T07:13:09Z","updated_at":"2016-03-03T07:13:09Z","body":"Se me ocurrió una mejor idea. Actualmente Usuario tiene una relación ManyToMany a cursos que sirve para la asignación. La idea a nivel lógico es que la relación tenga un atributo que sirva para saber si se debe mandar un correo. A nivel de técnico (symfony) se tendría que crear otra entidad para poder agregar el atributo a la relación y esa entidad tendría que tener relaciones one to many a curso y a usuario para que sea equivalente al ManyToMany."}}