start adding support for Models objects from Ezc

This commit is contained in:
2021-05-31 18:59:20 +02:00
parent 22de3322ae
commit 6e4f8f5191
9 changed files with 62 additions and 3 deletions

View File

@@ -63,7 +63,9 @@ void Item::fields()
field(L"subject", subject);
field(L"template", html_template);
field(L"sort_index", sort_index);
field(L"content_id", item_content, morm::FT::foreign_key);
field(L"content_id", L"content", item_content, morm::FT::foreign_key);
//field(L"my_test_function", my_test_function);
// may we should add a method setTypeFromInt(int t)?
type = static_cast<Type>(type_helper);

View File

@@ -44,6 +44,10 @@
#include "core/log.h"
#include "funinfo.h"
#include "templates/htmltextstream.h"
namespace Winix
{
@@ -180,6 +184,12 @@ public:
void propagate_connector();
// for tests
static void my_test_function(Ezc::FunInfo<HtmlTextStream> & env)
{
env.out << L"hello from function";
}
protected: