display blog entries from homepage (the index page of the Page controller)
modify getBlog method of the Blog entity to retrieve only 500 characters from blog body {blog.blog(500)} in homepage
we want to create a custom query so I modified Blog entity to create a custom repository and run in console 'php app/console doctrine:generate:entities Acme\BlogBundle'
create a custom method for retrieving the latest blogs and update the controller to use it
write Comment entity that has many to one relation with Blog entity
run 'php app/console doctrine:generate:entities Acme\BlogBundle'
register DoctrineMigrationsBundle in the kernel located at app/appKernel.php
run in console 'php app/console doctrine:migrations:diff' and 'php app/console doctrine:migrations:migrate'