Featured Post

Integrating Zend Framework 2.x with Doctrine 2.x ORM

Today I would like to present Doctrine 2 ORM integration with Zend Framework 2. I had some problems with this, so I would like to share the solution for my issues. Downloading sample project First of all you need to download example ZF2 project. We have two example projects created by Zend Framework...

Read More

Writing DQL statements

Posted by Tomasz Kuter | Posted in Programming, Web development | Posted on 21-03-2013

Tags: , , , , , , , , , ,

0

Today I would like to focus on something, what Doctrine 1.x users know, but it looks a little bit different – Doctrine Query Language (DQL) statements.

In the last tutorial we had had working Album Controller, which was using Doctrine Entity Manager, to get the Album data. Now we will focus on something more advanced – writing SQL alike statements to get some data from the album’s table.

So lets begin…