コード例 #1
0
ファイル: BalanceItem.php プロジェクト: ianikanov/homefinance
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAccounts()
 {
     return $this->hasMany(Account::className(), ['balance_item_id' => 'id']);
 }
コード例 #2
0
ファイル: Transaction.php プロジェクト: ianikanov/homefinance
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAccountTo()
 {
     return $this->hasOne(Account::className(), ['id' => 'account_to_id']);
 }
コード例 #3
0
ファイル: Currency.php プロジェクト: ercling/economizzer
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAccounts()
 {
     return $this->hasMany(Account::className(), ['currency_id' => 'id']);
 }
コード例 #4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAccounts()
 {
     return $this->hasMany(Account::className(), ['ID_CurrencyOfThePayments' => 'ID']);
 }
コード例 #5
0
ファイル: Page.php プロジェクト: kmrsfrnc/bananapress
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCreatorAccount()
 {
     return $this->hasOne(Account::className(), ['id' => 'creator_account_id']);
 }