for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "tag_invalidation_type".
*
* @property int $id
* @property string $name
* @property Tag[] $tags
*/
class TagInvalidationType extends \yii\db\ActiveRecord
{
* {@inheritdoc}
public static function tableName()
return 'tag_invalidation_type';
}
public function rules()
return [
[['name'], 'required'],
[['name'], 'string', 'max' => 255],
];
public function attributeLabels()
'id' => 'ID',
'name' => 'Name',
* @return \yii\db\ActiveQuery
public function getTags()
return $this->hasMany(Tag::className(), ['invalidation_type_id' => 'id']);
yii\base\BaseObject::className()
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
ignore-deprecated
return $this->hasMany(/** @scrutinizer ignore-deprecated */ Tag::className(), ['invalidation_type_id' => 'id']);
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.