12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "testBooks".
- *
- * @property integer $id
- * @property string $title
- * @property string $author
- */
- class TestBooks extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'testBooks';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['title', 'author'], 'string', 'max' => 100],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => Yii::t('app', 'ID'),
- 'title' => Yii::t('app', 'Title'),
- 'author' => Yii::t('app', 'Author'),
- ];
- }
- }
|