コード例 #1
0
ファイル: Tenant.php プロジェクト: antonio74/daduu42
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getContact_categories()
 {
     return $this->hasMany(Contact_category::className(), ['tenant_id' => 'id']);
 }
コード例 #2
0
ファイル: Contact.php プロジェクト: antonio74/daduu42
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getContact_category()
 {
     return $this->hasOne(Contact_category::className(), ['id' => 'contact_category_id']);
 }