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