/** * @param string $userId * @param string $contactId * @return MessageQuery * @throws \yii\base\InvalidConfigException */ public static function messages($userId, $contactId) { return \Yii::createObject(MessageQuery::className(), [get_called_class(), ['userId' => $userId, 'contactId' => $contactId]]); }
/** * @return MessageQuery * @throws \yii\base\InvalidConfigException */ public static function find() { return Yii::createObject(MessageQuery::className(), [get_called_class()]); }