public function GetRelatedPrimaryKey() { if ($this->IsIdentifying) { throw new RelationalException('An identifying relationship does not contain a related primary key'); } return $this->RelatedPrimaryKey; }