Model constructor ignores attributes not declared in model