front and back-end web development, Leeds, UK


Richard's Blog - Design, coding and life in Japan

Richard

Doctrine

Using repositories in Doctrine 2

One feature of Doctrine 2 and other data mapper style ORM's is that rather than each class model invoking itself to make queries in the database (Active Record style), custom queries to the database are handled by a bridge layer that is extends the Entity Manager.

We cannot do any any queries to the DB without going through the Entity Manager, here is the simplest case:

Tags:

Doctrine 2 and why you should use it!

If any of you are used to Hibernate in the Java world you will know what I am talking about. But Doctrine 2 is almost exactly the same as Hibernate.

Tags:

Doctrine ORM Joys and Frustrations

 I was to first make it clear that I think Doctrine is a fantastic ORM and my choice by far for any PHP project.

Tags:

Doctrine autoload problem in version 1.2.1

I realized it was time to install doctrine into one of my legacy apps to bring it up to date and boost it some power somewhat. It seems that documentation was a bit lagging and I particularly had trouble with the autoloading of models.

Using the following in my bootstrap

Tags:

Recent Blog Posts

Syndicate content