schema.yml
Kod
User:
actAs:
Timestampable: ~
columns:
id_rank:
type: integer(4)
notnull: true
login:
type: string(2147483647)
notnull: true
password:
type: string(2147483647)
notnull: true
last_login:
type: timestamp(25)
email:
type: string(2147483647)
notnull: true
id_klub: integer(4)
id_stan: integer(4)
relations:
Rank:
local: id_rank
foreign: id
onUpdate: CASCADE
type: many
foreignType: one
class: Rank
Rank:
actAs:
Timestampable: ~
columns:
name:
type: string(255)
notnull: true
actAs:
Timestampable: ~
columns:
id_rank:
type: integer(4)
notnull: true
login:
type: string(2147483647)
notnull: true
password:
type: string(2147483647)
notnull: true
last_login:
type: timestamp(25)
email:
type: string(2147483647)
notnull: true
id_klub: integer(4)
id_stan: integer(4)
relations:
Rank:
local: id_rank
foreign: id
onUpdate: CASCADE
type: many
foreignType: one
class: Rank
Rank:
actAs:
Timestampable: ~
columns:
name:
type: string(255)
notnull: true
ranks.yml
Kod
Rank:
root:
name: Root
admin:
name: Administrator
root:
name: Root
admin:
name: Administrator
users.yml
Kod
User:
ghul0:
Rank: root
id: 0
login: ghul0
password: *****
email: ghul1991@gmail.com
ghul0:
Rank: root
id: 0
login: ghul0
password: *****
email: ghul1991@gmail.com
po uruchomieniu komendy:
Kod
doctrine:data-load
doctrine wywala mi:
Kod
Couldn't call Doctrine::set(), second argument should be an instance of Doctrine_Collection when setting one-to-many references.
problem jest na pewno z linijką na czerwono ale mam pytanie jaki?