doctrine: setting association with id instead of object instance

前端 未结 0 545
误落风尘
误落风尘 2020-12-23 03:11

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

comment.setArticle(10) // 10 is          


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