Doctrine2 sort by certain string value

makisu

New Member
For example I have blog posts table with status of publication(new, moderation, archive).How I can get entities where posts with status "moderation" will be in first place?I know what I can resolve this issue with PHP and custom sorting but how I can do this with Doctrine 2?
 
Back
Top