protected function getResourcePrimaryKey() { return !array_key_exists('idParam', $this->options) && $this->isParent() && $this->getIdKey() === $this->getName() . "_id" ? "id" : $this->getIdKey(); }