Symfony Doctrine Many to Many Relationship (ManyToMany)

Many to many relations are one of the mostly used relations in the relational database. It took a while for me to figure how to properly configure this relation in Symfony Doctrine. I am sharing this so it might be useful for someone. Used very simple example students and course. A student can opt for… Continue reading Symfony Doctrine Many to Many Relationship (ManyToMany)

Install PHP 5.6 on Ubuntu 16.04

To Install PHP 5.6 on Ubuntu just follow the command one by one bellow. apt-get update apt-get install software-properties-common add-apt-repository ppa:ondrej/php apt-key del 4F4EA0AAE5267A6C apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 4F4EA0AAE5267A6C apt-get install apache2 php5.6 php5.6-cgi php5.6-curl php5.6-gd php5.6-intl php5.6-mysql php5.6-json php5.6-bz2 php5.6-mcrypt php5.6-xmlrpc php5.6-xsl php5.6-bcmath php5.6-mbstring php5.6-soap php5.6-xml php5.6-zip service apache2 restart  

Symfony: Adding custom route by code during runtime

During development we always come across situation where you need to add custom routes based on some settings based from the user. In this case we cannot use any of the standard methods like annotation and configuration files in symfony. In this case you need to use a services and hooks to inject your custom… Continue reading Symfony: Adding custom route by code during runtime