Contentful logo

Contentful Community

PHP SDK - Load Entry even if it has deleted assets

Just what the title says. The PHP SDK throws an exception when trying to load an entry and it’s relationships when a relationship on it has been deleted.

Is there a way to bypass the exception and return the data?

I’d much rather handle the error myself so I can handle the broken relationships gracefully.

Hi @bborders ,

Theoretically it should be possible in PHP to override some of the classes, by ‘copying’ them on your project and then modify them accordingly. However I am not a developer, so for a specific help, you could try to open an issue on our PHP SDK Github page: