{"action":"created","issue":{"url":"https://api.github.com/repos/sergisergio/Snowtricks_Project6/issues/9","repository_url":"https://api.github.com/repos/sergisergio/Snowtricks_Project6","labels_url":"https://api.github.com/repos/sergisergio/Snowtricks_Project6/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/sergisergio/Snowtricks_Project6/issues/9/comments","events_url":"https://api.github.com/repos/sergisergio/Snowtricks_Project6/issues/9/events","html_url":"https://github.com/sergisergio/Snowtricks_Project6/issues/9","id":342479685,"node_id":"MDU6SXNzdWUzNDI0Nzk2ODU=","number":9,"title":"Entities","user":{"login":"sergisergio","id":20978599,"node_id":"MDQ6VXNlcjIwOTc4NTk5","avatar_url":"https://avatars3.githubusercontent.com/u/20978599?v=4","gravatar_id":"","url":"https://api.github.com/users/sergisergio","html_url":"https://github.com/sergisergio","followers_url":"https://api.github.com/users/sergisergio/followers","following_url":"https://api.github.com/users/sergisergio/following{/other_user}","gists_url":"https://api.github.com/users/sergisergio/gists{/gist_id}","starred_url":"https://api.github.com/users/sergisergio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergisergio/subscriptions","organizations_url":"https://api.github.com/users/sergisergio/orgs","repos_url":"https://api.github.com/users/sergisergio/repos","events_url":"https://api.github.com/users/sergisergio/events{/privacy}","received_events_url":"https://api.github.com/users/sergisergio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-18T20:27:51Z","updated_at":"2018-07-22T16:17:16Z","closed_at":null,"author_association":"OWNER","body":"6 Entities to write : \r\n- Tricks\r\n- Users\r\n- Comments\r\n- Categories\r\n- Videos\r\n- Pictures"},"comment":{"url":"https://api.github.com/repos/sergisergio/Snowtricks_Project6/issues/comments/406878668","html_url":"https://github.com/sergisergio/Snowtricks_Project6/issues/9#issuecomment-406878668","issue_url":"https://api.github.com/repos/sergisergio/Snowtricks_Project6/issues/9","id":406878668,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjg3ODY2OA==","user":{"login":"sergisergio","id":20978599,"node_id":"MDQ6VXNlcjIwOTc4NTk5","avatar_url":"https://avatars3.githubusercontent.com/u/20978599?v=4","gravatar_id":"","url":"https://api.github.com/users/sergisergio","html_url":"https://github.com/sergisergio","followers_url":"https://api.github.com/users/sergisergio/followers","following_url":"https://api.github.com/users/sergisergio/following{/other_user}","gists_url":"https://api.github.com/users/sergisergio/gists{/gist_id}","starred_url":"https://api.github.com/users/sergisergio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergisergio/subscriptions","organizations_url":"https://api.github.com/users/sergisergio/orgs","repos_url":"https://api.github.com/users/sergisergio/repos","events_url":"https://api.github.com/users/sergisergio/events{/privacy}","received_events_url":"https://api.github.com/users/sergisergio/received_events","type":"User","site_admin":false},"created_at":"2018-07-22T16:17:16Z","updated_at":"2018-07-22T16:17:16Z","author_association":"OWNER","body":"***ADDING ENTITIES***\r\n\r\nWhat I did must be deleted because we add entities with commands in a terminal...\r\nWe need doctrine : \r\n**composer require doctrine**\r\nset up database in the \".env\" file with name, login and password.\r\ncreate the database : \r\n**php bin/console doctrine:database:create**\r\ncreate an entity : \r\n**php bin/console make:entity**\r\nA new file is created (src/Entity). A new class has been generated.\r\nNB : see \"doctrine annotations reference\" with google.\r\nThe entity is ready but the database is still empty.\r\n**php bin/console make:migration**\r\nwe got a new directory src/Migrations/Versions* in whiwh we can see SQL code.\r\n**php bin/console doctrine:migrations:migrate**\r\nOur database is OK. We can see the status with : \r\n**php bin/console doctrine:migrations:status**\r\nIf we have to change something like add an index \"unique=true\", we update one more time : \r\np**hp bin/console make:migration**\r\n**php bin/console doctrine:migrations:migrate**"}}
{"actor":{"display_login":"sergisergio"}}