public static function retrievByKshowId($kshow_id, $join_all = false) { $c = new Criteria(); // myCriteria::addComment( $c , __METHOD__ ); $c->addAnd(roughcutEntryPeer::ROUGHCUT_KSHOW_ID, $kshow_id); $c->addAscendingOrderByColumn(roughcutEntryPeer::ID); if ($join_all) { return roughcutEntryPeer::doSelectJoinAll($c); } else { return roughcutEntryPeer::doSelect($c); } }