예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getRelIdRebanho()
 {
     return $this->hasOne(Rebanho::className(), ['idRebanho' => 'idRebanho']);
 }
예제 #2
0
파일: Nucleo.php 프로젝트: AnaSousa25/TcV
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getRebanhos()
 {
     return $this->hasMany(Rebanho::className(), ['idNucleo' => 'idNucleo']);
 }