/** * @return \yii\db\ActiveQuery */ public function getDatas() { return $this->hasMany(Data::className(), ['id_mother' => 'id']); }