Changeset 1819
- Timestamp:
- 07/21/2010 09:55:52 PM (6 weeks ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
plugins/sfDoctrineActAsCommentablePlugin/trunk/modules/aComment/lib/BaseaCommentComponents.class.php
r1218 r1819 7 7 $this->maxDepth = sfConfig::get("app_sfDoctrineActAsCommentable_".get_class($this->object), 1); 8 8 $q = Doctrine::getTable('Comment')->createQuery()->addOrderBy('created_at DESC'); 9 if( isset($this->namespace))9 if(!empty($this->namespace)) 10 10 $q->andWhere('namespace = ?', $this->namespace); 11 11 $this->comments = $this->object->getCommentsAsTree($q);
