Can now return an empty instance when no result
Assuming a MyEntity
static entity with no id 25
:
MyEntity::get(25); // returns null
MyEntity::get(25, true); // returns empty instance of MyEntity
Assuming a MyEntity
static entity with no id 25
:
MyEntity::get(25); // returns null
MyEntity::get(25, true); // returns empty instance of MyEntity