Add children to a parent that is not yet persisted to the database

前端 未结 0 825
忘掉有多难
忘掉有多难 2021-01-20 23:58
$model = new Model();

Say a new model is initiated but not persisted to the database. I want to add children (one-to-many relation) to that model:

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