С версии: 1.0
Автор: Buba Suma (bubasuma@gmail.com)
Наследование: extends yii\db\ActiveQuery
Пример #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()]);
 }