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

		$this->model_class = $subject->className();
		$this->foreign_pk = $subject->getPrimaryKey(true);
		$this->subject = $subject;
	}