title: Setting unknown property: yii\validators\NumberValidator::0
body: <p>I try to call  a setting form, which shows input forms for saving data into price database.</p>
  <p>My model throws the above Exception during rendering:</p>
  <p><strong>Unknown Property – yii\base\UnknownPropertyException<br>
  Setting unknown property: yii\validators\NumberValidator::0</strong></p>
  <p>error in line of <strong>_price-item:</strong></p>
  <pre><code>$form-&gt;field($model, &quot;[{$i}]credits&quot;)-&gt;textInput(['maxlength' =&gt; 8])
  </code></pre>
  <p>Model:</p>
  <pre><code>&lt;?php
  
  namespace app\models;
  
  
  use Yii;
  
  /**
   * @package app\models
   *
   * @property integer $id
   * @property integer $credits
   * @property integer $price
   * @property integer $reduced_price
   * @property integer $discount
   * @property string $start
   * @property string $end
   * @property integer $active
  
   */
  class Price extends \app\base\ActiveRecord
  {
      public function rules()
          {
              return [
                  [['credits'], 'integer', 'required'],
                  [['price'], 'integer','integerOnly' =&gt; false,'required', 'min' =&gt; 0, 'max' =&gt; 10000],
                  [['reduced_price','discount'],'integer','integerOnly' =&gt; false,'min' =&gt; 0, 'max' =&gt; 10000],
                  [['start','end'],'format' =&gt; 'php:Y-m-d H:i:s'],
                  [['active'], 'integer'],
                  [['active'], 'in', 'range' =&gt; array_keys(self::$_CONDITIONS)],
                  ];
          }
  }
  </code></pre>
  <p>Widget:</p>
  <pre><code>&lt;?php DynamicFormWidget::begin([
              'widgetContainer' =&gt; 'wrapper-prices',
              'widgetBody' =&gt; '.container-items',
              'widgetItem' =&gt; '.item',
              'limit' =&gt; 30,
              'min' =&gt; 1,
              'insertButton' =&gt; '.add-item',
              'deleteButton' =&gt; '.remove-item',
              'model' =&gt; count($prices) ? $prices[0] : new \app\models\Price(),
              'template' =&gt; $this-&gt;render('_price-item', [
                  'i' =&gt; 0,
                  'form' =&gt; $form,
                  'model' =&gt; count($prices) ? $prices[0] : new \app\models\Price(),
              ]),
              'formId' =&gt; 'dynamic-form',
              'formFields' =&gt; [
                  'credits',
                  'price',
                  'reduced_price',
                  'discount',
                  'start',
                  'end',
                  'active',
              ],
          ]); ?&gt;
  </code></pre>
  <p>mysql:</p>
  <pre><code>CREATE TABLE `price` (
    `id` int(11) NOT NULL,
    `credits` int(11) NOT NULL,
    `price` float NOT NULL,
    `reduced_price` float DEFAULT NULL,
    `discount` float DEFAULT NULL,
    `start` datetime DEFAULT NULL,
    `end` datetime DEFAULT NULL,
    `active` smallint(1) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  </code></pre>
  <p>Can anybody tell me, what is wrong ?
  my head almost burns</p>