public function subject($model)
	{
		Comment::validateSubject($model, true);

		$this->modelClass($model::className());
		$this->andWhere(['foreign_pk'=>$this->createPrimaryKeyJson($model)]);

		return $this;
	}
public function subject($model)
	{
		Comment::validateSubject($model, true);

		$this->modelClass($model::className());
		$this->andWhere(['foreign_pk'=>$this->createPrimaryKeyJson($model)]);

		return $this;
	}
public function subject ( $ model ) { Comment :: validateSubject ( $ model , true ) ; $ this -> modelClass ( $ model :: className ( ) ) ; $ this -> andWhere ( [ 'foreign_pk' => $ this -> createPrimaryKeyJson ( $ model ) ] ) ; return $ this ; }
Named scope to get entries for a certain model

@param \yii\db\ActiveRecord $model the model to get the audit trail for
@return \asinfotrack\yii2\comments\models\CommentQuery
@throws \yii\base\InvalidParamException if the model is not of type ActiveRecord
@throws \yii\base\InvalidConfigException if the models pk is empty or invalid
Named scope to get entries for a certain model