<?php

  // include base peer class
  require_once 'model/om/BaseSnippetCommentPeer.php';
  
  // include object class
  include_once 'model/SnippetComment.php';


/**
 * Skeleton subclass for performing query and update operations on the 'sn_comment' table.
 *
 * 
 *
 * You should add additional methods to this class to meet the
 * application requirements.  This class will only be generated as
 * long as it does not already exist in the output directory.
 *
 * @package model
 */	
class SnippetCommentPeer extends BaseSnippetCommentPeer {

  public function getLatests($max)
  {
    $c = new Criteria();
    $c->addDescendingOrderByColumn(self::CREATED_AT);
    $c->setLimit($max);
    return self::doSelectJoinAll($c); 
  }

} // SnippetCommentPeer

