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