コード例 #1
0
ファイル: Organizations.php プロジェクト: KCala/BDcrm
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPersons()
 {
     return $this->hasMany(Persons::className(), ['organization_id' => 'organization_id']);
 }
コード例 #2
0
ファイル: PhonesPerson.php プロジェクト: KCala/BDcrm
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPerson()
 {
     return $this->hasOne(Persons::className(), ['person_id' => 'person_id']);
 }