protected function getNormalizedPk() { $pk = $this->owner->getPrimaryKey(); return is_array($pk) ? json_encode($pk) : $pk; }