Gets an object from the db, or throws a moya.db.does-not-exist
exception if it doesn't exist
<db:getrequired model="#Topic" let:slug="url.topic" dst="topic"/>
name | purpose | type | required? | default | choices |
---|---|---|---|---|---|
db |
Database to use | text | No | "_default" |
|
dst |
Destination | reference | No | ||
filter |
Filter expression | database expression | No | ||
forupdate |
Issue a select FOR UPDATE? | boolean | No | no |
|
from |
Application | application reference | No | ||
if |
Conditional expression | expression | No | yes |
|
model |
Model element reference | text | No | ||
modelobj |
Model object | expression | No | None |
|
orderby |
Order by | comma list | No | ||
src |
query set to restrict search | expression | No | None |
|
value |
Value | expression | No | None |