Hi there!
I have the following schema.yml file:
Page:
actAs:
I18n:
fields: [name,html,urlShortDesc]
columns:
name: string
gender:
type: enum
values: [html, photoGallery]
default: html
html: string
urlShortDesc: string
section_id:
type: integer
notnull: true
relations:
Section:
foreignAlias: Pages
SubPage:
class: Page
local: subpage
foreign: id
type: one
But, when I execute the build-all-reload command, the following error message is displayed:
"SQLSTATE[42000]: Syntax error or access violation: 1072 Key column 'subpage' doesn't exist in table"
I'm trying to implement a self-relation class. Can anyone give me some help?
Thanks in advance, Best regards!