doctrine: setting association with id instead of object instance

前端 未结 0 1081
梦毁少年i
梦毁少年i 2020-12-23 03:50

is it possible to set associations between two objects, for example article and comment like this:

comment.setArticle(10) // 10 is          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题