Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time

Go Pro with Doctrine Queries

Well hi there! This repository holds the code and script for the KnpUniversity lesson called:

Go Pro with Doctrine Queries

Project Setup:

  1. Configure parameters.yml:

Copy app/config/parameters.yml.dist to app/config/parameters.yml and configure any of the database_ options.

  1. Download Composer

  2. Install the vendor libraries

php composer.phar install
  1. Create your database and load some fixtures!
php app/console doctrine:database:create
php app/console doctrine:schema:update --force
php app/console doctrine:fixtures:load
  1. Start the web server:
php app/console server:run
  1. Go to http://localhost:8000 and query for your fortune!