public function setSubject($subject)
	{
		self::validateSubject($subject, true);

		$this->model_class = $subject->className();
		$this->foreign_pk = $subject->getPrimaryKey(true);
		$this->subject = $subject;
	}
public function setSubject($subject)
	{
		self::validateSubject($subject, true);

		$this->model_class = $subject->className();
		$this->foreign_pk = $subject->getPrimaryKey(true);
		$this->subject = $subject;
	}
public function setSubject ( $ subject ) { self :: validateSubject ( $ subject , true ) ; $ this -> model_class = $ subject -> className ( ) ; $ this -> foreign_pk = $ subject -> getPrimaryKey ( true ) ; $ this -> subject = $ subject ; }
Sets the subject-model for this comment

@param \yii\db\ActiveRecord $subject the subject model
Sets the subject - model for this comment