Show
Ignore:
Timestamp:
06/01/06 12:16:40 (6 years ago)
Author:
francois
Message:

refactored sidebar module and added latest comments in sidebar (+feed)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/model/SnippetSnippetPeer.php

    r2 r7  
    3636 
    3737    return $pager; 
     38  } 
     39 
     40  public static function retrieveByComment($comment_id) 
     41  { 
     42    $c = new Criteria(); 
     43    $c->add(SnippetCommentPeer::ID, $comment_id); 
     44    $c->addJoin(self::ID, SnippetCommentPeer::SNIPPET_ID); 
     45 
     46    return self::doSelectOne($c); 
    3847  } 
    3948