- How to sort records with doctrine in symfony?
- $this->courses = Doctrine_Core::getTable('Course')->findByUserId($this->userId);
- $this->courses = Doctrine_Query::create()->from('Course c')->where('c.user_id = ?', $this->userId)->orderBy('c.user_id DESC')->execute();