public function last($num) { $this->getDbCriteria()->mergeWith(['order' => 'date DESC', 'limit' => $num]); return $this; }