Fixing Notice: Undefined index: paid in ...
Merge remote-tracking branch 'mvrhov/patch-2' into 0.8
[offline] wrap model by ArrayObject from bridge.
Merge branch '0.8'