1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
| # shema.yml (non testé)
Chien:
column:
nom: string(25)
animal_id: integer
relations
animal:
foreignAlias: chiens
Chat:
column:
nom: string(25)
animal_id: integer
relations
animal:
foreignAlias: chats
Animal:
column:
nom: string(25)
relations:
proches1:
class: Animal
refClass: AnimalLien
foreignAlias: proches2
AnimalLien:
column:
parent_id:
type: integer
primary: true
enfant_id:
type: integer
primary: true
relations:
parent:
class: Animal
local: parent_id
foreign: id
foreignAlias: parents
enfant:
class: Animal
local: enfant_id
foreign: id
foreignAlias: enfants |
Partager