php - Problems with Doctrine -


"user_id" property doesn't persisted "onetoone" in config. here config in yaml:

event:   type: entity   table: events   repositoryclass: eventrepository   fields:     userid:       type: integer       unsigned: true       nullable: true       column: user_id   onetoone:     user:       targetentity: user       cascade: {  }       mappedby: null       inversedby: null       joincolumns:         user_id:           referencedcolumnname: id       orphanremoval: false 

is error describe "user_id" both in "onetoone" , in "fields"? can wrong relation type prevents "user_id" saving?

i shouldn't have tried use both "user" , "user_id". generally, never use relations, give nothing. there no code generation. , have active record 1 have code it.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -