// config/doctrine/shema.yml<br/>
Category:<br/>
columns:<br/>
name: { type: string(20), notnull: true }<br/>
body: { type: clob, extra: markdown }<br/>
<br/>
Product:<br/>
columns:<br/>
category_id: { type: integer, notnull: true }<br/>
name: { type: string(15), notnull: true }<br/>
body: { type: clob, extra: markdown }<br/>
image: { type: integer, notnull: true }<br/>
cost: { type: integer(5), notnull: true }<br/>
relations:<br/>
Category:<br/>
foreignAlias: Products<br/>
Image:<br/>
class: DmMedia<br/>
local: image<br/>
onDelete: RESTRICT<br/>
<br/>
// config/dm/modules.yml<br/>
"":<br/>
category:<br/>
model: Category<br/>
page: true<br/>
name: "|"<br/>
admin: true<br/>
front: true<br/>
components:<br/>
list:<br/>
cache: true<br/>
show:<br/>
cache: true<br/>
<br/>
product:<br/>
parent: category<br/>
model: Product<br/>
page: true<br/>
name: "|"<br/>
admin: true<br/>
front: true<br/>
components:<br/>
listByCategory:<br/>
filters: [ category ]<br/>
cache: true<br/>
show:<br/>
cache: true<br/>
showLittle:<br/>
cache: true
memory_usage = 15653864
memory_peak_usage = 15837840
memory_usage = 14266416
memory_peak_usage = 14338544
memory_usage = 6275864
memory_peak_usage = 6275864
Source: https://habr.com/ru/post/115362/