protected function identifyEntity($instance, $entityName)
    {
        $fields = $this->models->get($entityName)->primaryFields();

        $id = [];
        foreach ($fields as $field) {
            $id[] = $this->accessor->getPropertyValue($instance, $field->name());
        }

        return implode(':', $id);
    }