public function getStatesnext() { return $this->hasMany(\app\models\StatesNext::className(), ['STATE_ID' => 'ID'])->where(['DEL_TRACT_ID' => 0]); }