webmcp
diff demo-app/app/main/_prefork/01-models.lua @ 254:2169a62e12f5
Work on demo application (to fit modified WebMCP API); Bugfixes of WebMCP
author | jbe |
---|---|
date | Mon Mar 02 01:15:34 2015 +0100 (2015-03-02) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/demo-app/app/main/_prefork/01-models.lua Mon Mar 02 01:15:34 2015 +0100 1.3 @@ -0,0 +1,7 @@ 1.4 +function mondelefant.class_prototype:by_id(id) 1.5 + return self:new_selector() 1.6 + :add_where{ "id = ?", id } 1.7 + :optional_object_mode() 1.8 + :exec() 1.9 +end 1.10 +execute.inner()