I've got a default value defined in my model for a field
'limit' => array(AttributeType::Number, 'default' => 0)
When I create a new record, if the limit field is empty,
NULL gets stored in the DB instead of 0. I thought
$model->setAttributes() would set the default values if the values coming in were
NULL. What am I missing?