Expanded the belongs to relationships. Improved the error templates for CLI so it respects html_errors ini settings.