and gets the model then sets the output object.
function()
{
$res = [
'res' => [
'success' => false
]
];
$tmp = $this->addData($res)
->addData($this->post)
->getModel();
if (!$tmp) {
$tmp = $res;
}
$this->obj = X::toObject($tmp);
}