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