Default values
Default properties are null in entity, e.g.: Schema
Foo:
type: object
properties:
bar:
type: bool
default: false
results in
...
/**
* Populate the entity
*
* @param array $data
*/
public function populate(array $data)
{
$this->setBar($data['bar'] ?? null);
}
instead of
$this->setBar($data['bar'] ?? false)
Edited by Felix Buchheim