Bonjour,
Je propose ça :
1 2 3 4 5 6 7
| Element:
columns:
id: { type: integer, notnull: true, primary: true, unsigned: true, autoincrement: true }
name: { type: string(45), notnull: true }
parent_id: { type: integer, notnull: false, unsigned: true }
relations:
Element: { local: parent_id, foreign: id } |
Ça fonctionne mais j'ai un petit souci avec l'admin-generator :
throw new InvalidArgumentException(sprintf('The "%s" model has to "%s" relation.', $this->getModelName(), $alias));
Si quelqu'un à une idée...
Partager