template->insertMessage now check if error is empty.

Simple ORM now support join model and save the result to specified alias.