(Probably the solution for my problem is simple, but I've been searching for over an hour and I still haven't found anything.)
I have two entities, X and Y, with a bidirectional relationship between them. For an X object, I would do something like anXObject->getY() to get all the Y objects associated with anXObject.
How can I only get a (possibly sorted) subset of the objects returned by the previous statement (probably using a DQL statement or some other Doctrine-specific mechanism)?
I could do it with SQL, using the X_Y association table created by Doctrine, but I'm curious if it can be done only with DQL. (From what I understand, that association table can't be accessed from DQL.)
Update:
Here are my entities (I have stripped unessential stuff for brevity): http://paste.pocoo.org/show/512177/
To clarify, what I want to do is get all the Serial objects that have a certain Tag.