title: Yii Framework Unknown Property Exception
body: <p>I know this might seem trivial but I really can't figure it out. I'm starting to develop a database application using Yii Framework and MySQL. I tried following the simple basic tutorial : 
  <a href="http://www.yiiframework.com/doc-2.0/guide-start-databases.html" rel="nofollow">http://www.yiiframework.com/doc-2.0/guide-start-databases.html</a>
  , but I used my own table "Supermarkets".
  I'm getting this error:</p>
  
  <p>Unknown Property – yii\base\UnknownPropertyException
  Getting unknown property: app\models\Supermarkets::name</p>
  
  <p>It's obvious that the method get ('name') is causing this error, but I don't know how to fix this.</p>
  
  <p>This is my code:</p>
  
  <p>...models/supermarkets.php:</p>
  
  <pre><code>&lt;?php
  
  namespace app\models;
  
  use yii\db\ActiveRecord;
  
  class Supermarkets extends ActiveRecord
  {
  
  
  
  }
  </code></pre>
  
  <p>...controllers/SupermarketsController.php:</p>
  
  <pre><code>&lt;?php
  
  namespace app\controllers;
  
  use yii\web\Controller;
  use yii\data\Pagination;
  use app\models\Supermarkets;
  
  class SupermarketsController extends Controller
  {
      public function actionIndex()
      {
          $query = Supermarkets::find();
  
          $pagination = new Pagination([
              'defaultPageSize' =&gt; 5,
              'totalCount' =&gt; $query-&gt;count(),
          ]);
  
          $supermarkets = $query-&gt;orderBy('name')
              -&gt;offset($pagination-&gt;offset)
              -&gt;limit($pagination-&gt;limit)
              -&gt;all();
  
          return $this-&gt;render('index', [
              'supermarkets' =&gt; $supermarkets,
              'pagination' =&gt; $pagination,
          ]);
      }
  }
  </code></pre>
  
  <p>...views/Supermarkets/index.php:</p>
  
  <pre><code>&lt;?php
  use yii\helpers\Html;
  use yii\widgets\LinkPager;
  ?&gt;
  &lt;h1&gt;Supermarkets&lt;/h1&gt;
  &lt;ul&gt;
  &lt;?php foreach ($supermarkets as $supermarket): ?&gt;
      &lt;li&gt;
          &lt;?= $supermarket-&gt;name?&gt;
          &lt;?= $supermarket-&gt;location ?&gt;
          &lt;?= $supermarket-&gt;telephone ?&gt;
          &lt;?= $supermarket-&gt;fax ?&gt;
          &lt;?= $supermarket-&gt;website ?&gt;
      &lt;/li&gt;
  &lt;?php endforeach; ?&gt;
  &lt;/ul&gt;
  
  &lt;?= LinkPager::widget(['pagination' =&gt; $pagination]) ?&gt;
  </code></pre>
  
  <p>Supermarkets.db:</p>
  
  <pre><code>CREATE TABLE IF NOT EXISTS `supermarkets` (
    `Name` varchar(71) NOT NULL,
    `Location` varchar(191) DEFAULT NULL,
    `Telephone` varchar(68) DEFAULT NULL,
    `Fax` varchar(29) DEFAULT NULL,
    `Website` varchar(24) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  </code></pre>
  
  <p>Any suggestions please?</p>