Skip to content

5.3.0

Compare
Choose a tag to compare
@oscarotero oscarotero released this 09 Dec 19:20
· 237 commits to master since this release

New NullValue class returned to prevent break chains with exceptions.

Before:

$post->category->id;
//thows exception if $post->category returns null

Now:

$post->category->id;
//It woks fine because $post->category returns a NullValue instance

Note: it only affects to automatic loaded relations of type RELATION_HAS_ONE that previously returned null.