mariosimao / notion-sdk-php

A complete Notion SDK for PHP developers.
https://mariosimao.github.io/notion-sdk-php/
MIT License
156 stars 24 forks source link

[BUG] Database - removePropertyByName() has no effect #353

Closed Pr4w closed 8 months ago

Pr4w commented 8 months ago

Hi,

I'm playing with the API, working on setting up a scheduler that links Notion to other platforms, using this SDK.

It seems to me that "removePropertyByName" doesn't do anything when updating a database. It works within the confines of the SDK, var_dump-ing the database before performing a $notion->databases()->update($database); shows that the Object no longer has that specific property, however the save doesn't actually remove the property.

It works fine for adding properties to an existing database, but removing them doesn't work.

Any thoughts?

Pr4w commented 8 months ago

I'm an idiot.