Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Doctrine 2 Presentation demo files

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 data
Octocat-spinner-32 doctrine @ 1fb2137
Octocat-spinner-32 lib
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 README.md
README.md

Doctrine 2

An introduction to Doctrine 2.1 for PHP developers.

Stages

Each branch represents a stage in the demonstration. Check out each in turn (starting with master) and follow any specific instructions below.

master

Contains business models and directory skeleton. Fetch the Doctrine submodule dependencies by running the following from the command line

git submodule update --init
cd doctrine
git submodule update --init

1-mapping

Annotation mapping added to models

2-configuration

Bootstrap, CLI config and binaries added. Run the following from the command line to generate the DB schema

bin/doctrine orm:schema-tool:create

3-application

Adds application files.

Run the inserts.php file to insert some initial data.

Run get-purchase-orders.php to retrieve and show the saved data.

Something went wrong with that request. Please try again.