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