示例#1
0
 /**
  * @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]]);
 }
示例#2
0
 /**
  * @return MessageQuery
  * @throws \yii\base\InvalidConfigException
  */
 public static function find()
 {
     return Yii::createObject(MessageQuery::className(), [get_called_class()]);
 }