for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace zacksleo\yii2\cms\models;
use Yii;
/**
* This is the model class for table "{{%tag}}".
*
* @property integer $id
* @property string $name
* @property integer $frequency
*/
class Tag extends \yii\db\ActiveRecord
{
* @inheritdoc
public static function tableName()
return '{{%tag}}';
}
public function rules()
return [
[['name'], 'required'],
[['frequency'], 'integer'],
[['name'], 'string', 'max' => 255],
];
public function attributeLabels()
'id' => 'ID',
'name' => 'Name',
'frequency' => 'Frequency',