Exemplo n.º 1
0
Arquivo: DataRef.php Projeto: robky/tb
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getDataLists()
 {
     return $this->hasMany(DataList::className(), ['id_data_ref' => 'id']);
 }
Exemplo n.º 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdDataList()
 {
     return $this->hasOne(DataList::className(), ['id' => 'id_data_list']);
 }