title: Yii2 dont work, error Getting unknown property: common\models\Articles::id
body: <p>Please help me. At the opening of the site there is an error </p>
  
  <blockquote>
    <p>Unknown Property – yii\base\UnknownPropertyException Getting unknown
    property: common\models\Articles::id</p>
  </blockquote>
  
  <p>I do not know what to do</p>
  
  <p><strong>common\models\articles.php</strong></p>
  
  <pre><code>public function beforeSave($insert)
  {
      if (parent::beforeSave($insert)) {
          if(empty($this-&gt;date) or $this-&gt;date == '0000-00-00'){
              $this-&gt;date = date("j.n.Y");
          }
          if($this-&gt;cat_id !== 11){
              if($this-&gt;online == 1){
                  $this-&gt;online_text = "Да";
              }else{
                  $this-&gt;online_text = "Нет";
              }
  
              if(!empty($this-&gt;author_link) and $this-&gt;author_link != 9){
                  $user = User::findOne($this-&gt;author_link);
                  $this-&gt;author = $user['username']." ".$user['lastname'];
              }
          }
          if(!empty($this-&gt;time)){
              $time = $this-&gt;time;
              $time = explode(':',$time);
              $h = $time[0];
              $m = $time[1];
              $s = 0;
          }else{
              $h = 0;
              $m = 0;
              $s = 0;
          }
  
          if(!empty($this-&gt;date)){
              $date = $this-&gt;date;
              $date = explode('.',$date);
              $d = $date[0];
              $mon = $date[1];
              $y = $date[2];
              $this-&gt;orders = mktime($h,$m,$s,$mon,$d,$y);
          }
  
  
          return true;
      }
      return false;
  }
  public static function tableName()
  {
      return 'Articles';
  }
  </code></pre>
  
  <p><strong>@frontend modules\Controller</strong></p>
  
  <pre><code>public function actionIndex($id=null)
  {
      $query = articles::find()-&gt;where(['online' =&gt; 1]);
      $count = $query-&gt;count();
      $pagination = new Pagination(['totalCount' =&gt; $count, 'pageSize'=&gt;6]);
      $news = $query-&gt;offset($pagination-&gt;offset)
          -&gt;limit($pagination-&gt;limit)
          -&gt;orderBy('id DESC')
          -&gt;all();
  
      return $this-&gt;render('index',[
          'arts'=&gt;$news,
          'pagination' =&gt; $pagination
          ]);
  }
  </code></pre>
  
  <p><strong>@frontend views\articles</strong></p>
  
  <pre><code>&lt;a href="/article/&lt;?echo $art['id']."-".$art['preview'].".html";?&gt;" class="main-page__news__link js-views-link"&gt;&lt;/a&gt;
  </code></pre>