Esempio n. 1
0
 /**
  * @return AccountQuery
  */
 public static function find()
 {
     return Yii::createObject(AccountQuery::className(), [get_called_class()]);
 }
Esempio n. 2
0
 /**
  * Finds an account by id.
  *
  * @param int $id
  *
  * @return models\Account|null
  */
 public function findAccountById($id)
 {
     return $this->accountQuery->where(['id' => $id])->one();
 }