This is a past event. Please join us for Web Summer Camp this year.

Doctrine: Get to work with mapping, queries and relationships!

About

Doctrine talks to databases, and if you can master it, you're dangerous! In this workshop, we'll start from the beginning with Doctrine inside Symfony and quickly learn how to map entities to the database, make simple (and more interesting) queries, and master all the complexities of database relationships.

Setting up developer environment 

You can follow the workshop better with the virtual appliance configuration used at the event. Check out the main repo and follow the instructions. In a nutshell, you should be able to create the Vagrant box with:

$ git clone https://github.com/netgen/summercamp-2015.git
$ cd summercamp-2015
$ git submodule init
$ git submodule update
$ vagrant up --no-provision

Then add all domains in the hosts as explained in the README.

To prepare this workshop, you should then:

$ vagrant ssh
(vagrant)$ cd /var/www/summercamp/
(vagrant)$ ./run.sh doctrine

You should have the workshop accessible in your browser at http://doctrine.phpsc/. If you have problems, check the FAQ. If you still have problems, you can fall back to using only workshop repo listed here.

Video - part 1

Video - part 2