/** * @inheritDoc */ protected static function baseQuery($userId) { return parent::baseQuery($userId)->with(['newMessages', 'contact.profile']); }
/** * @return string */ public function getConversationClass() { return Conversation::className(); }