protected function setPrimaryKeyConditions()
    {
        foreach ($this->model->primaryFields() as $field) {
            $value = $this->accessor->getPropertyValue($this->instance, $field->name());
            $this->builder->andWhere(
                sprintf(
                    '%s = %s',
                    $this->connection->quoteIdentifier($field->mappedName()),
                    $this->builder->createNamedParameter($value, $field->type())
                )
            );
        }
    }