Yii 2 Docs explains that I can set the fields that should be returned by default by toArray().
(http://www.yiiframework.com/doc-2.0/yii-base-model.html#fields()-detail)
Theres any possibility to ignore when contains null values?
function fields() {
return [
'email', // Ignore if email is null.
'fullName', // Ignore if fullName is null.
];
}