Category Archives: Doctrine

Doctrine Query Foreach Problem

The other day I was trying foreach loop through a Doctrine collection. I was getting confused, because my loop was never executing even though count() returned a positive value. It turns out that I had forgotten to run ->execute() on … Continue reading

Posted in 1.4, Doctrine, PHP, Symfony | Tagged , | Leave a comment

Doctrine Wherein with Empty Array

Today I was working with some doctrine code and was running into a strange bug. I was running a query that should have returned no objects, but instead returned all objects from a table. It turns out it was due … Continue reading

Posted in 1.4, Doctrine, Symfony | Tagged , , , , , | Leave a comment